Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit ba763b9

Browse files
committed
fixed psalm static errors
1 parent 19241c7 commit ba763b9

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

Diff for: src/Figlet/Figlet.php

+4
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,10 @@ protected function _smushAmount()
832832
if (empty($leftChar) || $leftChar === ' ') {
833833
$amount++;
834834
} elseif (! empty($rightChar)) {
835+
/**
836+
* @psalm-suppress RedundantConditionGivenDocblockType Avoid behavior BC break
837+
* @psalm-suppress MixedArgument
838+
*/
835839
if ($this->_smushem($leftChar, $rightChar) !== null) {
836840
$amount++;
837841
}

Diff for: src/Table/DecoratorManager.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ class DecoratorManager extends AbstractPluginManager
4646
'zendtexttabledecoratorunicode' => Decorator\Unicode::class,
4747
];
4848

49-
/** @var FactoriesConfigurationType */
49+
/**
50+
* @var FactoriesConfigurationType
51+
* @psalm-suppress NonInvariantDocblockPropertyType
52+
*/
5053
protected $factories = [
5154
Decorator\Ascii::class => InvokableFactory::class,
5255
Decorator\Unicode::class => InvokableFactory::class,

Diff for: src/Table/Table.php

+1
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ public function render()
499499
/**
500500
* Magic method which returns the rendered table
501501
*
502+
* @psalm-suppress MethodSignatureMustProvideReturnType
502503
* @return string
503504
*/
504505
public function __toString()

Diff for: test/MultiByteTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
/**
1111
* @group Laminas_Text
12+
* @psalm-suppress DeprecatedMethod
1213
*/
1314
class MultiByteTest extends TestCase
1415
{

0 commit comments

Comments
 (0)