Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psalm Level 6: 2 of 9: InvalidReturnType - src/Command/Fixture/AddCommand.php:53:81 - The declared return type 'int' for App\Command\Fixture\AddCommand::execute is incorrect, got 'int|non-falsy-string' (see https://psalm.dev/011) protected function execute(InputInterface $input, OutputInterface $output): int #529

Closed
rossaddison opened this issue Nov 3, 2022 · 1 comment

Comments

@rossaddison
Copy link
Contributor

rossaddison commented Nov 3, 2022

By adjusting the psalm.xml document to:

<?xml version="1.0"?>
<psalm
    errorLevel="6"        <------------------------------------------------------- change level 7 to 6
    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"
>
    <projectFiles>
        <directory name="src" />
        <file name="public/index.php"/>
        <file name="yii"/>
        <file name="autoload.php"/>
    </projectFiles>
</psalm>

... the following error occurs.

@vjik
Copy link
Member

vjik commented Nov 4, 2022

Closed favor in #538

@vjik vjik closed this as completed Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants