Skip to content

Commit

Permalink
feat: bump to psalm 5
Browse files Browse the repository at this point in the history
  • Loading branch information
kochen committed Dec 22, 2023
1 parent 9b5cda8 commit 8c3b82d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function getConfigTreeBuilder(): TreeBuilder

public function addScopesConfiguration(ArrayNodeDefinition $rootNode): self
{
/** @psalm-suppress UndefinedInterfaceMethod */
$rootNode
->fixXmlConfig('scope')
->children()
Expand All @@ -61,6 +62,7 @@ public function addScopesConfiguration(ArrayNodeDefinition $rootNode): self

public function addKeyChainsConfiguration(ArrayNodeDefinition $rootNode): self
{
/** @psalm-suppress UndefinedInterfaceMethod */
$rootNode
->fixXmlConfig('key_chain')
->children()
Expand All @@ -83,6 +85,7 @@ public function addKeyChainsConfiguration(ArrayNodeDefinition $rootNode): self

public function addPlatformsConfiguration(ArrayNodeDefinition $rootNode): self
{
/** @psalm-suppress UndefinedInterfaceMethod */
$rootNode
->fixXmlConfig('platform')
->children()
Expand All @@ -104,6 +107,7 @@ public function addPlatformsConfiguration(ArrayNodeDefinition $rootNode): self

public function addToolsConfiguration(ArrayNodeDefinition $rootNode): self
{
/** @psalm-suppress UndefinedInterfaceMethod */
$rootNode
->fixXmlConfig('tool')
->children()
Expand All @@ -126,6 +130,7 @@ public function addToolsConfiguration(ArrayNodeDefinition $rootNode): self

public function addRegistrationsConfiguration(ArrayNodeDefinition $rootNode): self
{
/** @psalm-suppress UndefinedInterfaceMethod */
$rootNode
->fixXmlConfig('registration')
->children()
Expand Down
1 change: 1 addition & 0 deletions Security/Exception/LtiToolMessageExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function handle(Throwable $exception, Request $request): Response
$message = urlencode($exception->getMessage());

if (null !== $launchPresentation && null !== $launchPresentation->getReturnUrl()) {
/** @psalm-suppress PossiblyNullArgument - getReturnUrl cannot be null here */
$redirectUrl = sprintf(
'%s%slti_msg=%s&lti_log=%s&lti_errormsg=%s&lti_errorlog=%s',
$launchPresentation->getReturnUrl(),
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"nyholm/psr7": "^1.8",
"oat-sa/lib-lti1p3-core": "^7.0",
"psr/log": "^1 || ^2 || ^3",
"symfony/console": "^5.4",
"symfony/framework-bundle": "^5.4",
"symfony/psr-http-message-bridge": "^2.0",
"symfony/security-bundle": "^5.4",
Expand All @@ -24,9 +25,9 @@
"nesbot/carbon": "^2.72",
"php-coveralls/php-coveralls": "^2.4",
"phpunit/phpunit": "~9",
"psalm/plugin-phpunit": "^0.15.1",
"psalm/plugin-phpunit": "^0.18.4",
"symfony/browser-kit": "^5.4",
"vimeo/psalm": "^4.6"
"vimeo/psalm": "^5.18"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 2 additions & 0 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
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="Action"/>
Expand Down

0 comments on commit 8c3b82d

Please sign in to comment.