You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ed72f33
Browse filesBrowse the repository at this point in the historyBrowse files
Instead of deserializing the data and then comparing it with the actual
objects, this serializes the actual object and then compares it with the
serialized data.
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.com.br>
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
-132Lines changed: 0 additions & 132 deletions
Original file line number
Diff line number
Diff line change
@@ -1644,90 +1644,6 @@ parameters:
1644
1644
count:1
1645
1645
path:src/Tools/ContextGenerator.php
1646
1646
1647
-
-
1648
-
message:'#^Binary operation "\." between ''Unable to find…'' and mixed results in an error\.$#'
1649
-
identifier:binaryOp.invalid
1650
-
count:1
1651
-
path:src/Tools/CustomJsonSerializer.php
1652
-
1653
-
-
1654
-
message:'#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#'
1655
-
identifier:binaryOp.invalid
1656
-
count:1
1657
-
path:src/Tools/CustomJsonSerializer.php
1658
-
1659
-
-
1660
-
message:'#^Cannot access offset 0 on mixed\.$#'
1661
-
identifier:offsetAccess.nonOffsetAccessible
1662
-
count:1
1663
-
path:src/Tools/CustomJsonSerializer.php
1664
-
1665
-
-
1666
-
message:'#^Cannot call method unserialize\(\) on mixed\.$#'
1667
-
identifier:method.nonObject
1668
-
count:1
1669
-
path:src/Tools/CustomJsonSerializer.php
1670
-
1671
-
-
1672
-
message:'#^Method PhpMyAdmin\\SqlParser\\Tools\\CustomJsonSerializer\:\:extractObjectData\(\) has parameter \$ref with generic class ReflectionClass but does not specify its types\: T$#'
1673
-
identifier:missingType.generics
1674
-
count:1
1675
-
path:src/Tools/CustomJsonSerializer.php
1676
-
1677
-
-
1678
-
message:'#^Method PhpMyAdmin\\SqlParser\\Tools\\CustomJsonSerializer\:\:unserializeObject\(\) should return object but returns mixed\.$#'
1679
-
identifier:return.type
1680
-
count:4
1681
-
path:src/Tools/CustomJsonSerializer.php
1682
-
1683
-
-
1684
-
message:'#^Parameter \#1 \$class of function class_exists expects string, mixed given\.$#'
1685
-
identifier:argument.type
1686
-
count:1
1687
-
path:src/Tools/CustomJsonSerializer.php
1688
-
1689
-
-
1690
-
message:'#^Parameter \#1 \$data of method SplDoublyLinkedList\<mixed\>\:\:unserialize\(\) expects string, mixed given\.$#'
1691
-
identifier:argument.type
1692
-
count:1
1693
-
path:src/Tools/CustomJsonSerializer.php
1694
-
1695
-
-
1696
-
message:'#^Parameter \#1 \$key of function array_key_exists expects int\|string, mixed given\.$#'
1697
-
identifier:argument.type
1698
-
count:1
1699
-
path:src/Tools/CustomJsonSerializer.php
1700
-
1701
-
-
1702
-
message:'#^Parameter \#1 \$string of function substr expects string, mixed given\.$#'
1703
-
identifier:argument.type
1704
-
count:1
1705
-
path:src/Tools/CustomJsonSerializer.php
1706
-
1707
-
-
1708
-
message:'#^Parameter \#2 \$name of method Zumba\\JsonSerializer\\JsonSerializer\:\:getReflectionProperty\(\) expects string, \(int\|string\) given\.$#'
1709
-
identifier:argument.type
1710
-
count:1
1711
-
path:src/Tools/CustomJsonSerializer.php
1712
-
1713
-
-
1714
-
message:'#^Parameter \#3 \$properties \(array\<string\>\) of method PhpMyAdmin\\SqlParser\\Tools\\CustomJsonSerializer\:\:extractObjectData\(\) should be contravariant with parameter \$properties \(array\) of method Zumba\\JsonSerializer\\JsonSerializer\:\:extractObjectData\(\)$#'
1715
-
identifier:method.childParameterType
1716
-
count:1
1717
-
path:src/Tools/CustomJsonSerializer.php
1718
-
1719
-
-
1720
-
message:'#^Variable \$ref might not be defined\.$#'
1721
-
identifier:variable.undefined
1722
-
count:1
1723
-
path:src/Tools/CustomJsonSerializer.php
1724
-
1725
-
-
1726
-
message:'#^Variable property access on object\.$#'
1727
-
identifier:property.dynamicName
1728
-
count:2
1729
-
path:src/Tools/CustomJsonSerializer.php
1730
-
1731
1647
-
1732
1648
message:'#^Argument of an invalid type list\<string\>\|false supplied for foreach, only iterables are supported\.$#'
1733
1649
identifier:foreach.nonIterable
@@ -2619,54 +2535,6 @@ parameters:
2619
2535
count:5
2620
2536
path:tests/Parser/WithStatementTest.php
2621
2537
2622
-
-
2623
-
message:'#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
2624
-
identifier:empty.notAllowed
2625
-
count:1
2626
-
path:tests/TestCase.php
2627
-
2628
-
-
2629
-
message:'#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\)\.$#'
2630
-
identifier:staticMethod.dynamicCall
2631
-
count:6
2632
-
path:tests/TestCase.php
2633
-
2634
-
-
2635
-
message:'#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertEquals\(\)\.$#'
2636
-
identifier:staticMethod.dynamicCall
2637
-
count:4
2638
-
path:tests/TestCase.php
2639
-
2640
-
-
2641
-
message:'#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\)\.$#'
2642
-
identifier:staticMethod.dynamicCall
2643
-
count:2
2644
-
path:tests/TestCase.php
2645
-
2646
-
-
2647
-
message:'#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertIsArray\(\)\.$#'
2648
-
identifier:staticMethod.dynamicCall
2649
-
count:2
2650
-
path:tests/TestCase.php
2651
-
2652
-
-
2653
-
message:'#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertIsList\(\)\.$#'
2654
-
identifier:staticMethod.dynamicCall
2655
-
count:2
2656
-
path:tests/TestCase.php
2657
-
2658
-
-
2659
-
message:'#^Dynamic call to static method PHPUnit\\Framework\\Assert\:\:assertIsString\(\)\.$#'
0 commit comments