Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions src/Symfony/Action/PlaceholderAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
final class PlaceholderAction
{
/**
* @param object $data
* @param object|null $data
*
* @return object
* @return object|null
*/
public function __invoke($data)
public function __invoke($data = null)
{
return $data;
}
Expand Down
4 changes: 0 additions & 4 deletions tests/Functional/JsonLd/InputOutputDtoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,6 @@ public function testInputOutputCycle(): void

public function testCreateNoInputResource(): void
{
if ($_SERVER['USE_SYMFONY_LISTENERS'] ?? false) {
$this->markTestSkipped('PlaceholderAction cannot resolve $data when input:false in event-listener mode.');
}

$response = self::createClient()->request('POST', '/jsonld_no_inputs', [
'headers' => ['Accept' => 'application/ld+json'],
]);
Expand Down
Loading