Commit 9430bc8
[BUGFIX] Prevent null-check on get_class occurrence
Since PHP's get_class() has the unlucky ability to pass null
(resp. nothing) as argument and considers the calling class
in this case which leads to side effects; and PHP 7.2 doesn't
allow null values at all anymore; this change fixes a case
where this might happen as of the interface since a null
object can be passed.1 parent 10e49f6 commit 9430bc8
File tree
2 files changed
+11
-1
lines changed- PublishWorkflow/Voter
- Tests/Unit/PublishWorkflow/Voter
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
103 | 113 | | |
0 commit comments