Skip to content

Update PHP 8 stubs to 0.4.36#5841

Open
phpstan-bot wants to merge 1 commit into
2.1.xfrom
create-pull-request/patch-2j2fbyv
Open

Update PHP 8 stubs to 0.4.36#5841
phpstan-bot wants to merge 1 commit into
2.1.xfrom
create-pull-request/patch-2j2fbyv

Conversation

@phpstan-bot

Copy link
Copy Markdown
Collaborator

Update PHP 8 stubs to 0.4.36: phpstan/php-8-stubs@0.4.35...0.4.36

@github-actions

Copy link
Copy Markdown
Contributor

Issue bot detected changes — view run:

Result of the code snippet from @pereorga in #11889 changed:

@@ @@
 PHP 8.0 – 8.4 (1 error)
 ==========
 
-12: Function get_cv_files() should return list<string> but returns array.
+12: Function get_cv_files() should return list<string> but returns list.
 
 PHP 7.2 – 7.4 (1 error)
 ==========
 
-12: Function get_cv_files() should return list<string> but returns array|false.
+12: Function get_cv_files() should return list<string> but returns list|false.
Full report

PHP 8.0 – 8.4 (1 error)

Line Error
12 Function get_cv_files() should return list<string> but returns list.

PHP 7.2 – 7.4 (1 error)

Line Error
12 `Function get_cv_files() should return list but returns list

Result of the code snippet from @staabm in #14768 changed:

@@ @@
+7: Expected type decimal-int-string, actual: lowercase-string&numeric-string&uppercase-string
 9: Expected type non-decimal-int-string, actual: string
Full report
Line Error
7 Expected type decimal-int-string, actual: lowercase-string&numeric-string&uppercase-string
9 Expected type non-decimal-int-string, actual: string

Result of the code snippet from @staabm in #14785 changed:

@@ @@
-9: Expected type decimal-int-string&non-falsy-string, actual: decimal-int-string
+7: PHPDoc tag @param for parameter $dec contains unresolvable type.
+9: Expected type decimal-int-string&non-falsy-string, actual: string
Full report
Line Error
7 PHPDoc tag @param for parameter $dec contains unresolvable type.
9 Expected type decimal-int-string&non-falsy-string, actual: string

Result of the code snippet from @staabm in #14786 changed:

@@ @@
  7: Function doFoo() has no return type specified.
-10: Call to function is_int() with int will always evaluate to true.
+ 7: PHPDoc tag @param for parameter $s contains unresolvable type.
+ 8: Unary operation "+" on string results in an error.
Full report
Line Error
7 Function doFoo() has no return type specified.
7 PHPDoc tag @param for parameter $s contains unresolvable type.
8 Unary operation "+" on string results in an error.

Result of the code snippet from @staabm in #14786 changed:

@@ @@
 7: Function doFoo() has no return type specified.
-9: Expected type (float|int), actual: int
+7: PHPDoc tag @param for parameter $s contains unresolvable type.
+8: Unary operation "+" on string results in an error.
+9: Expected type (float|int), actual: *ERROR*
Full report
Line Error
7 Function doFoo() has no return type specified.
7 PHPDoc tag @param for parameter $s contains unresolvable type.
8 Unary operation "+" on string results in an error.
9 `Expected type (float

Result of the code snippet from @claudepache in #14793 changed:

@@ @@
- 8: Loose comparison using == between decimal-int-string and '02' will always evaluate to false.
-13: Loose comparison using == between decimal-int-string and '2.0' will always evaluate to false.
+ 7: PHPDoc tag @param for parameter $a contains unresolvable type.
+12: PHPDoc tag @param for parameter $a contains unresolvable type.
Full report
Line Error
7 PHPDoc tag @param for parameter $a contains unresolvable type.
12 PHPDoc tag @param for parameter $a contains unresolvable type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant