PHP Classes

File: psalm-baseline.xml

Recommend this page to a friend!
  Classes of Eric Sizemore   ESI PHP Pagination   psalm-baseline.xml   Download  
File: psalm-baseline.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: ESI PHP Pagination
Show paginated navigation using callback functions
Author: By
Last change:
Date: 1 month ago
Size: 1,248 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="UTF-8"?> <files psalm-version="dev-master@08afc45a81d1f7c5145341ddf4c3c2c8b1985ed2"> <file src="src/Paginator.php"> <LessSpecificReturnStatement> <code><![CDATA[array_filter($config, static function (mixed $value, string $key) use ($validKeys): bool { if (!\in_array($key, $validKeys, true)) { return false; } return match($key) { 'itemTotalCallback', 'sliceCallback' => $value instanceof Closure, default => \is_int($value) }; }, ARRAY_FILTER_USE_BOTH)]]></code> </LessSpecificReturnStatement> <MoreSpecificReturnType> <code><![CDATA[array{}|array{ * itemTotalCallback?: Closure, * sliceCallback?: Closure, * itemsPerPage?: int, * pagesInRange?: int * }]]></code> </MoreSpecificReturnType> </file> <file src="tests/PaginatorTest.php"> <InvalidArgument> <code><![CDATA[[ 'itemTotalCallback' => '', 'sliceCallback' => '', 'itemsPerPage' => '', 'pagesInRange' => '', 'nonexistent' => '', ]]]></code> </InvalidArgument> </file> </files>