Skip to content

Commit

Permalink
Use 3.5 only methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Apr 18, 2018
1 parent 7c78f4a commit 6001a21
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions phpunit.xml.dist
Expand Up @@ -9,15 +9,15 @@
<php>
<ini name="memory_limit" value="-1"/>
<ini name="apc.enable_cli" value="1"/>
<!-- E_ALL & ~E_USER_DEPRECATED (16383)-->
<!-- E_ALL (32767) -->
<!-- E_ALL => 32767 -->
<!-- E_ALL & ~E_USER_DEPRECATED => 16383 -->
<ini name="error_reporting" value="16383"/>
</php>

<!-- Add any additional test suites you want to run here -->
<testsuites>
<testsuite name="ide-helper">
<directory>./tests/TestCase</directory>
<directory>tests/TestCase/</directory>
</testsuite>
</testsuites>

Expand All @@ -35,7 +35,7 @@
<!-- Prevent coverage reports from looking in tests and vendors -->
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>

Expand Down
2 changes: 1 addition & 1 deletion src/Annotator/EntityAnnotator.php
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Shell/AnnotationsShell.php
Expand Up @@ -441,7 +441,7 @@ public function getOptionParser() {
* @return \IdeHelper\Console\Io
*/
protected function _io() {
return new Io($this->io());
return new Io($this->getIo());
}

/**
Expand Down

0 comments on commit 6001a21

Please sign in to comment.