Skip to content

Commit 6b084b2

Browse files
committed
ALL_DOMAINS constant is deprecated on the Rules class
1 parent cd738ca commit 6b084b2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/PublicSuffix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function __construct($publicSuffix = null, string $section = '')
9696
*/
9797
private function setSection(string $section): string
9898
{
99-
if (in_array($this->publicSuffix, ['', null], true) || self::ALL_DOMAINS === $section) {
99+
if (in_array($this->publicSuffix, ['', null], true)) {
100100
return '';
101101
}
102102

src/PublicSuffixListSection.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
*/
1919
interface PublicSuffixListSection
2020
{
21-
/**
22-
* @deprecated 5.3
23-
*/
24-
const ALL_DOMAINS = 'ALL_DOMAINS';
25-
2621
const ICANN_DOMAINS = 'ICANN_DOMAINS';
2722

2823
const PRIVATE_DOMAINS = 'PRIVATE_DOMAINS';

src/Rules.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
*/
2020
final class Rules implements PublicSuffixListSection
2121
{
22+
/**
23+
* @deprecated 5.3
24+
*/
25+
const ALL_DOMAINS = 'ALL_DOMAINS';
26+
2227
/**
2328
* PSL rules as a multidimentional associative array.
2429
*

0 commit comments

Comments
 (0)