-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix syntax error when using readonly with dnf
Fixes GH-9500
- Loading branch information
Showing
4 changed files
with
67 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--TEST-- | ||
Bug GH-9500: Disjunctive Normal Form Types - readonly property followed by ( | ||
--FILE-- | ||
<?php | ||
class Dnf | ||
{ | ||
var A|(B&C) $a; | ||
var (B&C)|A $b; | ||
private A|(B&C) $c; | ||
private (B&C)|A $d; | ||
static A|(B&C) $e; | ||
static (B&C)|A $f; | ||
private static A|(B&C) $g; | ||
private static (B&C)|A $h; | ||
readonly private A|(B&C) $i; | ||
readonly private (B&C)|A $j; | ||
readonly A|(B&C) $k; | ||
readonly (B&C)|A $l; | ||
private readonly A|(B&C) $m; | ||
private readonly (B&C)|A $n; | ||
} | ||
?> | ||
DONE | ||
--EXPECT-- | ||
DONE |
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
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