Skip to content

Commit 1fb2fdb

Browse files
authored
Update PHPStan packages
1 parent e016c23 commit 1fb2fdb

File tree

5 files changed

+39
-14
lines changed

5 files changed

+39
-14
lines changed

build/baseline-pre-8.0.neon

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,18 @@ parameters:
113113
identifier: parameter.phpDocType
114114
count: 1
115115
path: ../src/Reflection/ClassReflectionFactory.php
116+
117+
-
118+
message: '#^Parameter \#3 of function sprintf is expected to be string by placeholder \#2 \("%%s"\), string\|false given\.$#'
119+
count: 1
120+
path: ../src/Cache/FileCacheStorage.php
121+
122+
-
123+
message: '#^Parameter \#3 of function sprintf is expected to be string by placeholder \#2 \("%%s"\), string\|false given\.$#'
124+
count: 1
125+
path: ../src/Rules/Cast/InvalidCastRule.php
126+
127+
-
128+
message: '#^Parameter \#2 of function sprintf is expected to be string by placeholder \#1 \("%%s"\), string\|false given\.$#'
129+
count: 1
130+
path: ../src/Rules/ClassForbiddenNameCheck.php

composer.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stubs/ReflectionClass.stub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ class ReflectionClass
2323
*/
2424
public function getName() : string;
2525

26+
/**
27+
* @return non-empty-string
28+
*/
29+
public function getShortName() : string;
30+
2631
/**
2732
* @param mixed ...$args
2833
*

stubs/ReflectionClassWithLazyObjects.stub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ class ReflectionClass
2323
*/
2424
public function getName() : string;
2525

26+
/**
27+
* @return non-empty-string
28+
*/
29+
public function getShortName() : string;
30+
2631
/**
2732
* @param mixed ...$args
2833
*

tests/PHPStan/Analyser/NodeScopeResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function testFile(string $file): void
276276
$actual = $args[3];
277277

278278
if ($expected !== $actual) {
279-
$failures[] = sprintf("Line %d:\nExpected: %s\nActual: %s\n", $args[4], $expected, $actual);
279+
$failures[] = sprintf("Line %d:\nExpected: %s\nActual: %s\n", $args[4], (string) $expected, $actual);
280280
}
281281
} elseif ($args[0] === 'variableCertainty') {
282282
$file = $args[1];

0 commit comments

Comments
 (0)