diff --git a/.travis.yml b/.travis.yml index 794a11d7..dd7b4ae7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -76,7 +76,7 @@ before_script: script: - sh -c "if [ '$DEFAULT' = '1' ]; then vendor/bin/phpunit --stderr; fi" - - sh -c "if [ '$PHPSTAN' = '1' ]; then composer require --dev phpstan/phpstan:^0.6 && vendor/bin/phpstan analyse -c phpstan.neon -l 1 src; fi" + - sh -c "if [ '$PHPSTAN' = '1' ]; then composer require --dev phpstan/phpstan:^0.8 && vendor/bin/phpstan analyse -c phpstan.neon -l 1 src; fi" - sh -c "if [ '$CODECOVERAGE' = '1' ]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=clover.xml || true; fi" - sh -c "if [ '$CODECOVERAGE' = '1' ]; then wget -O codecov.sh https://codecov.io/bash; fi" - sh -c "if [ '$CODECOVERAGE' = '1' ]; then bash codecov.sh; fi" diff --git a/phpstan.neon b/phpstan.neon index 4595bfdb..311dea8e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,4 +2,6 @@ services: - class: Migrations\PHPStan\ShellPropertiesClassReflectionExtension tags: - - phpstan.broker.propertiesClassReflectionExtension \ No newline at end of file + - phpstan.broker.propertiesClassReflectionExtension +parameters: + bootstrap: tests/PHPStan/bootstrap.phpstan.php \ No newline at end of file diff --git a/src/Shell/Task/SeedTask.php b/src/Shell/Task/SeedTask.php index de3a2261..572d5fed 100644 --- a/src/Shell/Task/SeedTask.php +++ b/src/Shell/Task/SeedTask.php @@ -22,6 +22,8 @@ /** * Task class for generating seed files. + * + * @property \Bake\Shell\Task\BakeTemplateTask */ class SeedTask extends SimpleBakeTask { @@ -32,13 +34,6 @@ class SeedTask extends SimpleBakeTask */ public $pathFragment = 'config/Seeds/'; - /** - * BakeTemplate instance. - * - * @var \Bake\Shell\Task\BakeTemplateTask - */ - public $BakeTemplate; - /** * {@inheritDoc} */ diff --git a/tests/PHPStan/BakeTemplatePropertyReflection.php b/tests/PHPStan/BakeTemplatePropertyReflection.php index c7da39d8..c5fd9392 100644 --- a/tests/PHPStan/BakeTemplatePropertyReflection.php +++ b/tests/PHPStan/BakeTemplatePropertyReflection.php @@ -44,4 +44,14 @@ public function getType(): Type { return $this->type; } + + public function isReadable(): bool + { + return true; + } + + public function isWritable(): bool + { + return true; + } } diff --git a/tests/PHPStan/bootstrap.phpstan.php b/tests/PHPStan/bootstrap.phpstan.php new file mode 100644 index 00000000..a39154a1 --- /dev/null +++ b/tests/PHPStan/bootstrap.phpstan.php @@ -0,0 +1,16 @@ +