Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/Routers/Route.filter.url.object.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ require __DIR__ . '/Route.php';


$identityMap = [];
$identityMap[1] = new Object(1);
$identityMap[2] = new Object(2);
$identityMap[1] = new RouterObject(1);
$identityMap[2] = new RouterObject(2);


$route = new Route('<parameter>', [
Expand All @@ -26,7 +26,7 @@ $route = new Route('<parameter>', [
return isset($identityMap[$s]) ? $identityMap[$s] : NULL;
},
Route::FILTER_OUT => function ($obj) {
return $obj instanceof Object ? $obj->getId() : NULL;
return $obj instanceof RouterObject ? $obj->getId() : NULL;
},
],
]);
Expand All @@ -51,7 +51,7 @@ Assert::null(testRouteOut($route, 'presenter', [
]));


class Object
class RouterObject
{
/** @var int */
private $id;
Expand Down