|
| 1 | +parameters: |
| 2 | + ignoreErrors: |
| 3 | + - |
| 4 | + message: '#^Method Marwa\\DB\\Config\\Config\:\:get\(\) should return array\{driver\: string, host\?\: string, port\?\: int, database\: string, username\?\: string, password\?\: string, charset\?\: string, options\?\: array\<int, int\>, \.\.\.\} but returns array\<int\|string, array\{driver\: string, host\?\: string, port\?\: int, database\: string, username\?\: string, password\?\: string, charset\?\: string, options\?\: array\<int, int\>, \.\.\.\}\|int\>\.$#' |
| 5 | + identifier: return.type |
| 6 | + count: 1 |
| 7 | + path: src/Config/Config.php |
| 8 | + |
| 9 | + - |
| 10 | + message: '#^Method Marwa\\DB\\Config\\Config\:\:get\(\) should return array\{driver\: string, host\?\: string, port\?\: int, database\: string, username\?\: string, password\?\: string, charset\?\: string, options\?\: array\<int, int\>, \.\.\.\} but returns array\<int\|string, array\{driver\: string, host\?\: string, port\?\: int, database\: string, username\?\: string, password\?\: string, charset\?\: string, options\?\: array\<int, int\>, \.\.\.\}\|int\>\|bool\|int\|string\.$#' |
| 11 | + identifier: return.type |
| 12 | + count: 1 |
| 13 | + path: src/Config/Config.php |
| 14 | + |
| 15 | + - |
| 16 | + message: '#^Method Marwa\\DB\\Config\\Config\:\:get\(\) should return array\{driver\: string, host\?\: string, port\?\: int, database\: string, username\?\: string, password\?\: string, charset\?\: string, options\?\: array\<int, int\>, \.\.\.\} but returns array\{\}\.$#' |
| 17 | + identifier: return.type |
| 18 | + count: 1 |
| 19 | + path: src/Config/Config.php |
| 20 | + |
| 21 | + - |
| 22 | + message: '#^Method Marwa\\DB\\Connection\\ConnectionManager\:\:recordQuery\(\) has parameter \$bindings with no value type specified in iterable type array\.$#' |
| 23 | + identifier: missingType.iterableValue |
| 24 | + count: 1 |
| 25 | + path: src/Connection/ConnectionManager.php |
| 26 | + |
| 27 | + - |
| 28 | + message: '#^Method Marwa\\DB\\Connection\\InstrumentedPdo\:\:__construct\(\) has parameter \$options with no value type specified in iterable type array\.$#' |
| 29 | + identifier: missingType.iterableValue |
| 30 | + count: 1 |
| 31 | + path: src/Connection/InstrumentedPdo.php |
| 32 | + |
| 33 | + - |
| 34 | + message: '#^Method Marwa\\DB\\Connection\\InstrumentedPdoStatement\:\:execute\(\) has parameter \$params with no value type specified in iterable type array\.$#' |
| 35 | + identifier: missingType.iterableValue |
| 36 | + count: 1 |
| 37 | + path: src/Connection/InstrumentedPdoStatement.php |
| 38 | + |
| 39 | + - |
| 40 | + message: '#^Method Marwa\\DB\\Logger\\QueryLogger\:\:all\(\) return type has no value type specified in iterable type array\.$#' |
| 41 | + identifier: missingType.iterableValue |
| 42 | + count: 1 |
| 43 | + path: src/Logger/QueryLogger.php |
| 44 | + |
| 45 | + - |
| 46 | + message: '#^Property Marwa\\DB\\Logger\\QueryLogger\:\:\$entries type has no value type specified in iterable type array\.$#' |
| 47 | + identifier: missingType.iterableValue |
| 48 | + count: 1 |
| 49 | + path: src/Logger/QueryLogger.php |
| 50 | + |
| 51 | + - |
| 52 | + message: '#^Call to function method_exists\(\) with Marwa\\DB\\Query\\Builder and ''whereNotNull'' will always evaluate to true\.$#' |
| 53 | + identifier: function.alreadyNarrowedType |
| 54 | + count: 1 |
| 55 | + path: src/ORM/Model.php |
| 56 | + |
| 57 | + - |
| 58 | + message: '#^Call to function method_exists\(\) with Marwa\\DB\\Query\\Builder and ''whereNull'' will always evaluate to true\.$#' |
| 59 | + identifier: function.alreadyNarrowedType |
| 60 | + count: 1 |
| 61 | + path: src/ORM/Model.php |
| 62 | + |
| 63 | + - |
| 64 | + message: '#^Empty array passed to foreach\.$#' |
| 65 | + identifier: foreach.emptyArray |
| 66 | + count: 1 |
| 67 | + path: src/ORM/Model.php |
| 68 | + |
| 69 | + - |
| 70 | + message: '#^Method Marwa\\DB\\ORM\\Model\:\:fill\(\) has parameter \$attributes with no value type specified in iterable type array\.$#' |
| 71 | + identifier: missingType.iterableValue |
| 72 | + count: 1 |
| 73 | + path: src/ORM/Model.php |
| 74 | + |
| 75 | + - |
| 76 | + message: '#^Method Marwa\\DB\\ORM\\Model\:\:filterFillable\(\) return type has no value type specified in iterable type array\.$#' |
| 77 | + identifier: missingType.iterableValue |
| 78 | + count: 1 |
| 79 | + path: src/ORM/Model.php |
| 80 | + |
| 81 | + - |
| 82 | + message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#' |
| 83 | + identifier: function.alreadyNarrowedType |
| 84 | + count: 2 |
| 85 | + path: src/ORM/Relations/BelongsToMany.php |
| 86 | + |
| 87 | + - |
| 88 | + message: '#^Method Marwa\\DB\\ORM\\Relations\\BelongsToMany\:\:__construct\(\) has parameter \$pivotColumns with no value type specified in iterable type array\.$#' |
| 89 | + identifier: missingType.iterableValue |
| 90 | + count: 1 |
| 91 | + path: src/ORM/Relations/BelongsToMany.php |
| 92 | + |
| 93 | + - |
| 94 | + message: '#^Method Marwa\\DB\\Query\\Builder\:\:insert\(\) has parameter \$data with no value type specified in iterable type array\.$#' |
| 95 | + identifier: missingType.iterableValue |
| 96 | + count: 1 |
| 97 | + path: src/Query/Builder.php |
| 98 | + |
| 99 | + - |
| 100 | + message: '#^Method Marwa\\DB\\Query\\Builder\:\:update\(\) has parameter \$data with no value type specified in iterable type array\.$#' |
| 101 | + identifier: missingType.iterableValue |
| 102 | + count: 1 |
| 103 | + path: src/Query/Builder.php |
| 104 | + |
| 105 | + - |
| 106 | + message: '#^Method Marwa\\DB\\Schema\\Blueprint\:\:foreign\(\) has parameter \$options with no value type specified in iterable type array\.$#' |
| 107 | + identifier: missingType.iterableValue |
| 108 | + count: 1 |
| 109 | + path: src/Schema/Blueprint.php |
| 110 | + |
| 111 | + - |
| 112 | + message: '#^Method Marwa\\DB\\Schema\\Blueprint\:\:foreign\(\) has parameter \$refColumns with no value type specified in iterable type array\.$#' |
| 113 | + identifier: missingType.iterableValue |
| 114 | + count: 1 |
| 115 | + path: src/Schema/Blueprint.php |
| 116 | + |
| 117 | + - |
| 118 | + message: '#^Call to function method_exists\(\) with Marwa\\DebugBar\\CollectorManager and ''register'' will always evaluate to true\.$#' |
| 119 | + identifier: function.alreadyNarrowedType |
| 120 | + count: 1 |
| 121 | + path: src/Support/DebugBarAdapter.php |
| 122 | + |
| 123 | + - |
| 124 | + message: '#^Call to function method_exists\(\) with Marwa\\DebugBar\\DebugBar and ''collectors'' will always evaluate to true\.$#' |
| 125 | + identifier: function.alreadyNarrowedType |
| 126 | + count: 1 |
| 127 | + path: src/Support/DebugBarAdapter.php |
| 128 | + |
| 129 | + - |
| 130 | + message: '#^Call to function method_exists\(\) with Marwa\\DebugBar\\DebugBar and ''setLogger'' will always evaluate to true\.$#' |
| 131 | + identifier: function.alreadyNarrowedType |
| 132 | + count: 1 |
| 133 | + path: src/Support/DebugBarAdapter.php |
| 134 | + |
| 135 | + - |
| 136 | + message: '#^Parameter \#1 \$connections of class Marwa\\DB\\Config\\Config constructor expects array\<string, array\{default\?\: string, connections\?\: array\<string, array\{driver\: string, host\?\: string, port\?\: int, database\: string, username\?\: string, password\?\: string, charset\?\: string, options\?\: array\<int, int\>, \.\.\.\}\>\}\|array\{driver\: string, host\?\: string, port\?\: int, database\: string, username\?\: string, password\?\: string, charset\?\: string, options\?\: array\<int, int\>, \.\.\.\}\>, array\{default\: ''sqlite'', connections\: array\{sqlite\: array\{driver\: ''sqlite'', database\: ''\:memory\:''\}\}\} given\.$#' |
| 137 | + identifier: argument.type |
| 138 | + count: 1 |
| 139 | + path: tests/Config/ConfigTest.php |
| 140 | + |
| 141 | + - |
| 142 | + message: '#^Parameter \#1 \$config of method Marwa\\DB\\Connection\\ConnectionFactory\:\:makePdo\(\) expects array\{driver\?\: string, host\?\: string, port\?\: int, database\: string, username\?\: string, password\?\: string, charset\?\: string, options\?\: array\<int, int\>\}, array\{driver\: ''mysql'', host\: ''127\.0\.0\.1'', username\: ''root'', password\: ''''\} given\.$#' |
| 143 | + identifier: argument.type |
| 144 | + count: 1 |
| 145 | + path: tests/Connection/ConnectionFactoryTest.php |
| 146 | + |
| 147 | + - |
| 148 | + message: '#^Parameter \#1 \$config of method Marwa\\DB\\Connection\\ConnectionFactory\:\:makePdo\(\) expects array\{driver\?\: string, host\?\: string, port\?\: int, database\: string, username\?\: string, password\?\: string, charset\?\: string, options\?\: array\<int, int\>\}, array\{driver\: ''sqlsrv''\} given\.$#' |
| 149 | + identifier: argument.type |
| 150 | + count: 1 |
| 151 | + path: tests/Connection/ConnectionFactoryTest.php |
| 152 | + |
| 153 | + - |
| 154 | + message: '#^Using nullsafe method call on non\-nullable type Marwa\\DB\\Tests\\ORM\\OrmUser\. Use \-\> instead\.$#' |
| 155 | + identifier: nullsafe.neverNull |
| 156 | + count: 1 |
| 157 | + path: tests/ORM/QueryBuilderTest.php |
0 commit comments