1
0
Fork 0
mirror of synced 2025-04-02 04:46:16 +03:00

Upgrade phpstan to 0.9

Applying the necessary fixes.
This commit is contained in:
Luís Cobucci 2017-12-17 00:55:50 +01:00
parent 80a94727ee
commit 74ce8913fc
No known key found for this signature in database
GPG key ID: EC61C5F01750ED3C
4 changed files with 7 additions and 4 deletions

View file

@ -72,9 +72,10 @@ jobs:
- stage: Code Quality
env: DB=none STATIC_ANALYSIS
install: travis_retry composer update --prefer-dist --prefer-stable
before_script:
- echo "extension=redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- travis_retry composer require --dev --prefer-dist --prefer-stable phpstan/phpstan:^0.8 symfony/console:^3.0
- travis_retry composer require --dev --prefer-dist --prefer-stable phpstan/phpstan:^0.9
script: vendor/bin/phpstan analyse -l 1 -c phpstan.neon lib
- stage: Code Quality

View file

@ -52,7 +52,7 @@ class CommitOrderCalculator
* - <b>dependencyList</b> (array<string>)
* Map of node dependencies defined as hashes.
*
* @var array<stdClass>
* @var array<\stdClass>
*/
private $nodeList = [];

View file

@ -834,6 +834,8 @@ class Parser
*/
public function QueryLanguage()
{
$statement = null;
$this->lexer->moveNext();
switch ($this->lexer->lookahead['type']) {
@ -3357,7 +3359,7 @@ class Parser
switch (true) {
case $customFunctionDeclaration !== null:
return $customFunctionDeclaration;
case (isset(self::$_STRING_FUNCTIONS[$funcName])):
return $this->FunctionsReturningStrings();

View file

@ -158,7 +158,7 @@ class YamlExporter extends AbstractExporter
$associationMappingArray['fetch'] = $this->_getFetchModeString($associationMapping['fetch']);
}
if (isset($mapping['id']) && $mapping['id'] === true) {
if (isset($associationMapping['id']) && $associationMapping['id'] === true) {
$array['id'][$name]['associationKey'] = true;
}