Skip to content

Commit

Permalink
Fix SA ARK.
Browse files Browse the repository at this point in the history
  • Loading branch information
zerai committed Mar 3, 2024
1 parent 5ce4f3e commit 84be56f
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
10 changes: 10 additions & 0 deletions phparkitect-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
"line": 27,
"error": "depends on App\\Repository\\UserRepository, but should not depend on these namespaces: App\\Controller\\*, App\\Service\\*, App\\Repository\\* because of component architecture"
},
{
"fqcn": "IdentityAccess\\AdapterForCli\\CreateMarketplaceOauthClientCommand",
"line": 88,
"error": "depends on App\\Entity\\OAuth2ClientProfile, but should not depend on classes outside namespace IdentityAccess\\Core because or namespaces in whitelist we want isolate our identity access Adapters from ever growing dependencies."
},
{
"fqcn": "IdentityAccess\\AdapterForCli\\CreateStageMarketplaceOauthClientCommand",
"line": 88,
"error": "depends on App\\Entity\\OAuth2ClientProfile, but should not depend on classes outside namespace IdentityAccess\\Core because or namespaces in whitelist we want isolate our identity access Adapters from ever growing dependencies."
},
{
"fqcn": "IdentityAccess\\AdapterForReadingAccounts\\AccountsDataProvider",
"line": 26,
Expand Down
34 changes: 34 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
<file src="_iam/src/AdapterForCli/CreateMarketplaceOauthClientCommand.php">
<ArgumentTypeCoercion>
<code>$oAuthClient</code>
</ArgumentTypeCoercion>
<LessSpecificReturnStatement>
<code><![CDATA[$client
->setRedirectUris(...array_map(static fn (string $redirectUri): RedirectUri => new RedirectUri($redirectUri), $redirectUriStrings))
->setGrants(...array_map(static fn (string $grant): Grant => new Grant($grant), $grantStrings))
->setScopes(...array_map(static fn (string $scope): Scope => new Scope($scope), $scopeStrings))]]></code>
</LessSpecificReturnStatement>
<MissingReturnType>
<code>createOauthClientForMarketplaceEngine</code>
</MissingReturnType>
<MoreSpecificReturnType>
<code>AbstractClient</code>
</MoreSpecificReturnType>
</file>
<file src="_iam/src/AdapterForCli/CreateStageMarketplaceOauthClientCommand.php">
<ArgumentTypeCoercion>
<code>$oAuthClient</code>
</ArgumentTypeCoercion>
<LessSpecificReturnStatement>
<code><![CDATA[$client
->setRedirectUris(...array_map(static fn (string $redirectUri): RedirectUri => new RedirectUri($redirectUri), $redirectUriStrings))
->setGrants(...array_map(static fn (string $grant): Grant => new Grant($grant), $grantStrings))
->setScopes(...array_map(static fn (string $scope): Scope => new Scope($scope), $scopeStrings))]]></code>
</LessSpecificReturnStatement>
<MissingReturnType>
<code>createOauthClientForMarketplaceEngine</code>
</MissingReturnType>
<MoreSpecificReturnType>
<code>AbstractClient</code>
</MoreSpecificReturnType>
</file>
<file src="_iam/src/AdapterForWeb/Administration/OauthClient/OauthClientController.php">
<MixedArgument>
<code><![CDATA[$form->getData()]]></code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
'League\Bundle\OAuth2ServerBundle',

'Doctrine\DBAL\Connection',
'Doctrine\ORM\EntityManagerInterface',

'Symfony\Bundle\FrameworkBundle\Controller\AbstractController',
'Symfony\Component\HttpFoundation\Request',
'Symfony\Component\HttpFoundation\Response',

'Symfony\Component\Console',

'Symfony\Component\Form',

'Symfony\Component\OptionsResolver\OptionsResolver',
Expand Down

0 comments on commit 84be56f

Please sign in to comment.