Skip to content

Commit

Permalink
Type-hint the create method output
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Feb 3, 2025
1 parent 674dfe9 commit b5ac859
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Variant/PieceArrayFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@

class PieceArrayFactory
{
public static function create(array $array, Square $square, CastlingRule $castlingRule = null, string $namespace)
public static function create(
array $array,
Square $square,
CastlingRule $castlingRule = null,
string $namespace
): array
{
$pieces = [];
foreach ($array as $i => $rank) {
Expand Down

0 comments on commit b5ac859

Please sign in to comment.