Skip to content

Commit 2008685

Browse files
authored
Record whitelisted classes (#251)
1 parent 1fd056d commit 2008685

File tree

50 files changed

+480
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+480
-24
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

specs/string-literal/const.php renamed to fixtures/string-literal/const.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ class Yaml
153153

154154
'FQC constant call on whitelisted class' => [
155155
'whitelist' => ['Symfony\Component\Yaml\Yaml'],
156+
'registered-classes' => [
157+
['Symfony\Component\Yaml\Yaml', 'Humbug\Symfony\Component\Yaml\Yaml'],
158+
],
156159
'payload' => <<<'PHP'
157160
<?php
158161
File renamed without changes.

specs/string-literal/func-arg.php renamed to fixtures/string-literal/func-arg.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ class Yaml
529529

530530
'FQC constant call on whitelisted class' => [
531531
'whitelist' => ['Symfony\Component\Yaml\Yaml'],
532+
'registered-classes' => [
533+
['Symfony\Component\Yaml\Yaml', 'Humbug\Symfony\Component\Yaml\Yaml'],
534+
],
532535
'payload' => <<<'PHP'
533536
<?php
534537
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)