Skip to content

Commit d5af498

Browse files
authored
Merge pull request #5 from peckadesign/pdp-2852-povyseni-php-na-7-4
Povyseni na php 7.4 - Aktualizace phpstanu - Odstraneni podpory php 7.0 - Nastaveni minimalnich verzi balicku v composer.json - Oprava phpstan chyb
2 parents f76607c + 22f54d1 commit d5af498

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
language: php
22
php:
3-
- 7.0
43
- 7.1
4+
- 7.2
5+
- 7.3
6+
- 7.4
57

68
script:
79
- vendor/bin/phpstan analyse -l 5 src

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
}
2424
],
2525
"require": {
26-
"php": "~7.0",
27-
"nette/application": "^2.2",
28-
"nette/di": "^2.2",
29-
"kdyby/console": "^2.3.2",
26+
"php": "~7.1",
27+
"nette/application": "~2.4.14",
28+
"nette/di": "~2.4.14",
29+
"kdyby/console": "~2.7.1",
3030
"supervisorphp/configuration": "~0.2.1"
3131
},
3232
"require-dev": {
33-
"phpstan/phpstan": "~0.6.0"
33+
"phpstan/phpstan": "0.12.11"
3434
},
3535
"autoload": {
3636
"psr-4": {

src/Console/RenderCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
4242
*/
4343
$configuration = $this->container->getByType(Configuration::class);
4444
$output->write($this->getRenderer()->render($configuration->toArray()));
45+
46+
return 0;
4547
}
4648

4749
}

src/Console/WriteCommand.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,17 @@ protected function execute(InputInterface $input, OutputInterface $output)
5757
$loader->load($configuration);
5858
} catch (LoaderException $exception) {
5959
$output->writeln($exception->getMessage());
60+
61+
return 1;
6062
}
6163
}
6264
if ($writer->write($configuration)) {
6365
$output->writeln(sprintf('Supervisor configuration has been successfully written to file %s', $filesystemAdapter->applyPathPrefix($file)));
66+
67+
return 0;
6468
}
69+
70+
return 1;
6571
}
6672

6773
}

0 commit comments

Comments
 (0)