Skip to content

Commit

Permalink
Update psalm to ^5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jsor committed Apr 20, 2023
1 parent d9a2bdd commit c8e586b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"doctrine/orm": "^2.9",
"friendsofphp/php-cs-fixer": "^3.13",
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^4.10",
"vimeo/psalm": "^5.9",
"symfony/doctrine-bridge": "^5.4 || ^6.0",
"symfony/doctrine-messenger": "^5.4 || ^6.0"
},
Expand Down
5 changes: 4 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?xml version="1.0"?>
<psalm
errorLevel="2"
errorLevel="1"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
findUnusedBaselineEntry="true"
findUnusedCode="false"
>
<projectFiles>
<directory name="src" />
Expand Down
2 changes: 1 addition & 1 deletion src/Event/DBALSchemaEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function onSchemaAlterTableChangeColumn(SchemaAlterTableChangeColumnEvent

public function onSchemaColumnDefinition(SchemaColumnDefinitionEventArgs $args): void
{
/** @var array{type: string, default: string, field: string, isnotnull: int|bool} $tableColumn */
/** @var array{type: string, default: string, field: string, isnotnull: int|bool, comment: string|null} $tableColumn */
$tableColumn = array_change_key_case($args->getTableColumn(), CASE_LOWER);
$table = $args->getTable();

Expand Down
2 changes: 1 addition & 1 deletion src/Event/ORMSchemaEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $args): voi
continue;
}

/** @var array{primary?: array<string>, indexes?: array<Index>, foreignKeys?: ForeignKeyConstraint|array<ForeignKeyConstraint>} $options */
/** @var array{geometry_type?: string|null, srid?: int|string|null} $options */
$options = $column->getCustomSchemaOptions();

$normalized = $type->getNormalizedPostGISColumnOptions($options);
Expand Down

0 comments on commit c8e586b

Please sign in to comment.