Skip to content

Commit

Permalink
fixed psalm static errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glo71317 committed Oct 13, 2023
1 parent 19241c7 commit ba763b9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Figlet/Figlet.php
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,10 @@ protected function _smushAmount()
if (empty($leftChar) || $leftChar === ' ') {
$amount++;
} elseif (! empty($rightChar)) {
/**
* @psalm-suppress RedundantConditionGivenDocblockType Avoid behavior BC break
* @psalm-suppress MixedArgument
*/
if ($this->_smushem($leftChar, $rightChar) !== null) {
$amount++;
}
Expand Down
5 changes: 4 additions & 1 deletion src/Table/DecoratorManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ class DecoratorManager extends AbstractPluginManager
'zendtexttabledecoratorunicode' => Decorator\Unicode::class,
];

/** @var FactoriesConfigurationType */
/**
* @var FactoriesConfigurationType
* @psalm-suppress NonInvariantDocblockPropertyType
*/
protected $factories = [
Decorator\Ascii::class => InvokableFactory::class,
Decorator\Unicode::class => InvokableFactory::class,
Expand Down
1 change: 1 addition & 0 deletions src/Table/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ public function render()
/**
* Magic method which returns the rendered table
*
* @psalm-suppress MethodSignatureMustProvideReturnType
* @return string
*/
public function __toString()
Expand Down
1 change: 1 addition & 0 deletions test/MultiByteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

/**
* @group Laminas_Text
* @psalm-suppress DeprecatedMethod
*/
class MultiByteTest extends TestCase
{
Expand Down

0 comments on commit ba763b9

Please sign in to comment.