Skip to content

Commit

Permalink
Adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 17, 2022
1 parent 71a6640 commit 72a3a3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Expand Up @@ -25,7 +25,7 @@ public function testMethods(): void
],
[
'Call to __construct() on an existing object is not allowed.',
51,
56,
],
]);
}
Expand Down
Expand Up @@ -47,5 +47,13 @@ public function mutate(string $datetime = "now", ?DateTimeZone $timezone = null)
}
}

$extendedDateTime = new ExtendedDateTimeWithMethodCall('2022/04/12');
$extendedDateTime->__construct('2022/04/13');
class Foo
{

public function doFoo()
{
$extendedDateTime = new ExtendedDateTimeWithMethodCall('2022/04/12');
$extendedDateTime->__construct('2022/04/13');
}

}

0 comments on commit 72a3a3d

Please sign in to comment.