Skip to content

Commit 58ea514

Browse files
committed
Minor const fixes
1 parent 4c6f1f8 commit 58ea514

4 files changed

Lines changed: 3 additions & 21 deletions

File tree

‎phpstan-baseline.neon‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -144,24 +144,6 @@ parameters:
144144
count: 1
145145
path: src/Sql/ExpressionData.php
146146

147-
-
148-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
149-
identifier: function.alreadyNarrowedType
150-
count: 1
151-
path: src/Sql/Insert.php
152-
153-
-
154-
message: '#^Class PhpDb\\Adapter\\Driver\\Pdo\\Pdo not found\.$#'
155-
identifier: class.notFound
156-
count: 1
157-
path: src/Sql/Insert.php
158-
159-
-
160-
message: '#^Method PhpDb\\Sql\\Insert\:\:__set\(\) with return type void returns \$this\(PhpDb\\Sql\\Insert\) but should not return anything\.$#'
161-
identifier: return.void
162-
count: 1
163-
path: src/Sql/Insert.php
164-
165147
-
166148
message: '#^PHPDoc type array of property PhpDb\\Sql\\InsertIgnore\:\:\$specifications is not covariant with PHPDoc type array\<array\|string\> of overridden property PhpDb\\Sql\\Insert\:\:\$specifications\.$#'
167149
identifier: property.phpDocType

‎src/Sql/Delete.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Delete extends AbstractPreparableSql
2424
/**@#+
2525
* @const
2626
*/
27-
final public const SPECIFICATION_DELETE = 'delete';
27+
public const SPECIFICATION_DELETE = 'delete';
2828

2929
final public const SPECIFICATION_WHERE = 'where';
3030

‎src/Sql/Insert.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Insert extends AbstractPreparableSql
2828
*
2929
* @const
3030
*/
31-
final public const SPECIFICATION_INSERT = 'insert';
31+
public const SPECIFICATION_INSERT = 'insert';
3232

3333
final public const SPECIFICATION_SELECT = 'select';
3434

‎src/Sql/Update.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Update extends AbstractPreparableSql
3131
/**@#++
3232
* @const
3333
*/
34-
final public const SPECIFICATION_UPDATE = 'update';
34+
public const SPECIFICATION_UPDATE = 'update';
3535

3636
final public const SPECIFICATION_SET = 'set';
3737

0 commit comments

Comments
 (0)