Skip to content

Commit

Permalink
Simplify Psalm config
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw committed Nov 23, 2023
1 parent fc1e8cf commit 01cf824
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 30 deletions.
32 changes: 2 additions & 30 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,40 +51,12 @@
<RawObjectIteration errorLevel="info"/>

<InvalidStringClass errorLevel="info"/>
<PossiblyUndefinedMethod>
<errorLevel type="suppress">
<file name="src/DependencyInjection/Configuration.php"/>
</errorLevel>
</PossiblyUndefinedMethod>
<PossiblyNullReference>
<errorLevel type="suppress">
<file name="src/DependencyInjection/Configuration.php"/>
</errorLevel>
</PossiblyNullReference>
<PossiblyNullArgument>
<errorLevel type="suppress">
<file name="src/DependencyInjection/SymfonyCastsResetPasswordExtension.php"/>
</errorLevel>
</PossiblyNullArgument>
<InvalidReturnType>
<errorLevel type="suppress">
<file name="src/Persistence/Fake/FakeResetPasswordInternalRepository.php"/>
</errorLevel>
</InvalidReturnType>
<TooManyArguments>
<errorLevel type="suppress">
<file name="src/Model/ResetPasswordToken.php"/>
</errorLevel>
</TooManyArguments>

<UndefinedInterfaceMethod>
<errorLevel type="suppress">
<file name="src/DependencyInjection/Configuration.php"/>
<referencedMethod name="Symfony\Component\Config\Definition\Builder\NodeParentInterface::integerNode" />
</errorLevel>
</UndefinedInterfaceMethod>
<UndefinedFunction>
<errorLevel type="suppress">
<file name="src/Model/ResetPasswordToken.php"/>
</errorLevel>
</UndefinedFunction>
</issueHandlers>
</psalm>
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public function load(array $configs, ContainerBuilder $container): void
$loader->load('reset_password_services.xml');

$configuration = $this->getConfiguration($configs, $container);
if (!$configuration) {
throw new \Exception('Configuration is not expected to be null');
}

$config = $this->processConfiguration($configuration, $configs);

Expand Down
3 changes: 3 additions & 0 deletions src/Model/ResetPasswordToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ public function getExpiresAtIntervalInstance(): \DateInterval
return $this->expiresAt->diff($createdAtTime);
}

/**
* @psalm-suppress UndefinedFunction
*/
private function triggerDeprecation(): void
{
trigger_deprecation(
Expand Down

0 comments on commit 01cf824

Please sign in to comment.