Skip to content

Commit

Permalink
Workaround null & mixed being ReservedWords
Browse files Browse the repository at this point in the history
Symfony 6 added return types to most of it's signatures.

This is reported as ReservedWords by Psalm.

See vimeo/psalm#7026 and doctrine/dbal#5053 for more context.
  • Loading branch information
fbourigault committed Jan 4, 2022
1 parent 5930bad commit ef3a63c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions psalm.xml
Expand Up @@ -31,5 +31,15 @@
<referencedMethod name="Symfony\Component\Config\Definition\Builder\TreeBuilder::root"/>
</errorLevel>
</UndefinedMethod>
<!-- Workaround for https://github.com/vimeo/psalm/issues/7026 -->
<ReservedWord errorLevel="suppress">
<errorLevel type="suppress">
<file name="src/Propel/Common/Config/ConfigurationManager.php" />
<file name="src/Propel/Common/Config/Loader/YamlFileLoader.php" />
<file name="src/Propel/Common/Config/PropelConfiguration.php" />
<file name="src/Propel/Generator/Behavior/Validate/ValidateBehavior.php" />
<file name="src/Propel/Runtime/Parser/YamlParser.php" />
</errorLevel>
</ReservedWord>
</issueHandlers>
</psalm>

0 comments on commit ef3a63c

Please sign in to comment.