Skip to content

Commit

Permalink
qa: pin psalm to currently latest commit of 5.x which will be release…
Browse files Browse the repository at this point in the history
…d as 5.16

This should prevent psalm from running into memory limit.

Signed-off-by: Maximilian Bösing <[email protected]>
  • Loading branch information
boesing committed Oct 11, 2023
1 parent 4e6c575 commit 7405e63
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"phpunit/phpunit": "^10.4",
"psalm/plugin-phpunit": "^0.18.4",
"symfony/console": "^6.0",
"vimeo/psalm": "^5.10"
"vimeo/psalm": "5.x-dev as 5.16"
},
"provide": {
"psr/container-implementation": "^1.0 || ^2.0"
Expand Down
30 changes: 20 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Command/AheadOfTimeFactoryCreatorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
];
}

/** @psalm-suppress ArgumentTypeCoercion Somehow, psalm resolves `factoryClassName` to `string` */
file_put_contents($localConfigFilename, $this->createLocalAotContainerConfigContent($containerConfigurations));

$output->writeln(sprintf('<info>Successfully created %d factories.</info>', count($compiledFactories)));
Expand Down

0 comments on commit 7405e63

Please sign in to comment.