From 6001a21c50e099c8995a35828acc034fb71086fa Mon Sep 17 00:00:00 2001 From: mscherer Date: Wed, 18 Apr 2018 19:05:11 +0200 Subject: [PATCH] Use 3.5 only methods. --- .travis.yml | 2 +- phpunit.xml.dist | 8 ++++---- src/Annotator/EntityAnnotator.php | 2 +- src/Shell/AnnotationsShell.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9909c17f..22a183a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,7 +44,7 @@ before_script: script: - if [[ $DEFAULT == 1 ]]; then vendor/bin/phpunit; fi - - if [[ $PHPCS == 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --ignore=/vendor/,/tmp/,/logs/ --extensions=php . ; fi + - if [[ $PHPCS == 1 ]]; then composer cs-check ; fi - if [[ $PHPSTAN == 1 ]]; then composer require --dev phpstan/phpstan:"^0.9" && vendor/bin/phpstan analyse -c tests/phpstan.neon -l 3 src; fi - if [[ $CODECOVERAGE == 1 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml || true; fi diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1b0537e2..7268fd95 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -9,15 +9,15 @@ - - + + - ./tests/TestCase + tests/TestCase/ @@ -35,7 +35,7 @@ - ./src/ + src/ diff --git a/src/Annotator/EntityAnnotator.php b/src/Annotator/EntityAnnotator.php index 33f3cae3..3c77e1cd 100644 --- a/src/Annotator/EntityAnnotator.php +++ b/src/Annotator/EntityAnnotator.php @@ -44,7 +44,7 @@ public function annotate($path) { $schema = []; foreach ($columns as $column) { - $row = $tableSchema->column($column); + $row = $tableSchema->getColumn($column); $row['kind'] = 'column'; $schema[$column] = $row; } diff --git a/src/Shell/AnnotationsShell.php b/src/Shell/AnnotationsShell.php index c0422823..1c5db8b1 100644 --- a/src/Shell/AnnotationsShell.php +++ b/src/Shell/AnnotationsShell.php @@ -441,7 +441,7 @@ public function getOptionParser() { * @return \IdeHelper\Console\Io */ protected function _io() { - return new Io($this->io()); + return new Io($this->getIo()); } /**