Skip to content

Commit 4a5b613

Browse files
author
Simon Mönch
authored
Update phpstan (#427)
1 parent cd8917f commit 4a5b613

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
name: Build and test
1414
strategy:
15+
fail-fast: false
1516
matrix:
1617
php: [ "7.2", "7.4" ]
1718
composer-version: [ "1" ]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MAKEFLAGS += --no-builtin-rules
66

77
PHPBIN=php
88
PHPNOGC=php -d zend.enable_gc=0
9-
PHPSTAN_URL=https://github.com/phpstan/phpstan/releases/download/0.12.2/phpstan.phar
9+
PHPSTAN_URL=https://github.com/phpstan/phpstan/releases/download/0.12.53/phpstan.phar
1010

1111
SRC_FILES=$(shell find bin/ src/ -type f)
1212

src/Configuration.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ final class Configuration
6868
/**
6969
* @param string|null $path Absolute path to the configuration file.
7070
* @param string[] $paths List of paths to append besides the one configured
71-
*
72-
* @return self
7371
*/
7472
public static function load(string $path = null, array $paths = []): self
7573
{
@@ -96,7 +94,7 @@ public static function load(string $path = null, array $paths = []): self
9694
);
9795
}
9896

99-
if (false === is_file($path) && false === (is_link($path) && is_file(readlink($path)))) {
97+
if (false === is_file($path) && false === (is_link($path) && false !== readlink($path) && is_file(readlink($path)))) {
10098
throw new InvalidArgumentException(
10199
sprintf(
102100
'Expected the path of the configuration file to be a file but "%s" appears to be a '
@@ -464,8 +462,6 @@ private static function retrieveFinders(array $config): array
464462

465463
/**
466464
* @param string[] $paths
467-
*
468-
* @return iterable
469465
*/
470466
private static function retrieveFilesFromPaths(array $paths): iterable
471467
{
@@ -512,8 +508,6 @@ private static function retrieveFilesFromPaths(array $paths): iterable
512508
}
513509

514510
/**
515-
* @param Iterator $files
516-
*
517511
* @return string[][] Array of tuple with the first argument being the file path and the second its contents
518512
*/
519513
private static function retrieveFilesWithContents(Iterator $files): array

src/PhpParser/NodeVisitor/ConstStmtReplacer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(Whitelist $whitelist, FullyQualifiedNameResolver $na
6363
*/
6464
public function enterNode(Node $node): Node
6565
{
66-
if (false === ($node instanceof Const_)) {
66+
if (!$node instanceof Const_) {
6767
return $node;
6868
}
6969

0 commit comments

Comments
 (0)