-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9748e82
commit 5d3556e
Showing
3 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
class Foo | ||
{ | ||
public $check = false; | ||
|
||
public function bar() : void | ||
{ | ||
$this->check = true; | ||
} | ||
} | ||
|
||
$foo = new Foo; | ||
$foo->bar(); | ||
|
||
assert($foo->check === true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
https://github.com/antecedent/patchwork/issues/63 | ||
|
||
--SKIPIF-- | ||
<?php version_compare(PHP_VERSION, "7.1", ">=") | ||
or die("skip because this bug only occurs in PHP 7.1") ?> | ||
|
||
--FILE-- | ||
<?php | ||
|
||
assert_options(ASSERT_ACTIVE, 1); | ||
assert_options(ASSERT_WARNING, 1); | ||
error_reporting(E_ALL | E_STRICT); | ||
|
||
require __DIR__ . "/../Patchwork.php"; | ||
require __DIR__ . "/includes/Php71VoidReturnType.php"; | ||
|
||
?> | ||
===DONE=== | ||
|
||
--EXPECT-- | ||
===DONE=== |