Skip to content

Commit 575b29e

Browse files
committed
Update PHPStan
1 parent 019d643 commit 575b29e

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,3 @@ parameters:
2929
message: "#^Parameter \\#2 \\$matches of method Teto\\\\SQL\\\\ReplacerInterface\\:\\:replaceQuery\\(\\) expects array\\<non\\-empty\\-string, string\\>, array\\<int\\|string, string\\> given\\.$#"
3030
count: 1
3131
path: src/Processor/PregCallbackReplacer.php
32-
33-
-
34-
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
35-
count: 1
36-
path: src/Type/PgIdentifier.php
37-
38-
-
39-
message: "#^Method Teto\\\\SQL\\\\Type\\\\PgIdentifier\\:\\:escapeValue\\(\\) should return int\\|string but return statement is missing\\.$#"
40-
count: 1
41-
path: src/Type/PgIdentifier.php
42-
43-
-
44-
message: "#^Parameter \\#1 \\$value of method Teto\\\\SQL\\\\Type\\\\PgIdentifier\\:\\:quote\\(\\) expects string, mixed given\\.$#"
45-
count: 1
46-
path: src/Type/PgIdentifier.php
47-
48-
-
49-
message: "#^Property Teto\\\\SQL\\\\Type\\\\PgIdentifier\\:\\:\\$types has no type specified\\.$#"
50-
count: 1
51-
path: src/Type/PgIdentifier.php
52-
53-
-
54-
message: "#^Part \\$value \\(mixed\\) of encapsed string cannot be cast to string\\.$#"
55-
count: 1
56-
path: tests/Replacer/Sample/DummyType.php
57-
58-
-
59-
message: "#^Method Teto\\\\SQL\\\\Type\\\\PgIdentifierTest\\:\\:escapeValuesProvider\\(\\) should return array\\<array\\{string, string\\}\\> but returns array\\{array\\{'', '@column', '\"\"'\\}, array\\{array\\{'foo'\\}, '@column\\[\\]', '\"foo\"'\\}, array\\{array\\{'foo', 'bar'\\}, '@column\\[\\]', '\"foo\",\"bar\"'\\}, array\\{array\\{foo\\: 'bar'\\}, '@column\\[\\]', 'foo AS \"bar\"'\\}, array\\{array\\{'\"foo\"'\\: 'bar'\\}, '@column\\[\\]', '\"foo\" AS \"bar\"'\\}, array\\{array\\{foo\\: null\\}, '@column\\[\\]', 'foo'\\}, array\\{array\\{'\"foo\"'\\: null\\}, '@column\\[\\]', '\"foo\"'\\}, array\\{array\\{foo\\: null, bar\\: 'buz'\\}, '@column\\[\\]', 'foo,bar AS \"buz\"'\\}, \\.\\.\\.\\}\\.$#"
60-
count: 1
61-
path: tests/Type/PgIdentifierTest.php

tools/.phpstan/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"phpstan/phpstan": "^1.7",
3+
"phpstan/phpstan": "^1.8",
44
"phpstan/phpstan-phpunit": "^1.1",
55
"phpstan/phpstan-strict-rules": "^1.2"
66
},

0 commit comments

Comments
 (0)