<?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>
|