Skip to content

Commit 243a83b

Browse files
committed
Use >= operator in #[RequiresPhp] attributes to allow compatible versions
1 parent 2492ca8 commit 243a83b

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

Tests/Caster/DOMCasterTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testCastImplementation()
3333
);
3434
}
3535

36-
#[RequiresPhp('8.4')]
36+
#[RequiresPhp('>=8.4')]
3737
public function testCastModernImplementation()
3838
{
3939
$implementation = new \Dom\Implementation();
@@ -63,7 +63,7 @@ public function testCastNode()
6363
);
6464
}
6565

66-
#[RequiresPhp('8.4')]
66+
#[RequiresPhp('>=8.4')]
6767
public function testCastModernNode()
6868
{
6969
$doc = \Dom\XMLDocument::createFromString('<foo><bar/></foo>');
@@ -97,7 +97,7 @@ public function testCastDocument()
9797
);
9898
}
9999

100-
#[RequiresPhp('8.4')]
100+
#[RequiresPhp('>=8.4')]
101101
public function testCastXMLDocument()
102102
{
103103
$doc = \Dom\XMLDocument::createFromString('<foo><bar/></foo>');
@@ -116,7 +116,7 @@ public function testCastXMLDocument()
116116
);
117117
}
118118

119-
#[RequiresPhp('8.4')]
119+
#[RequiresPhp('>=8.4')]
120120
public function testCastHTMLDocument()
121121
{
122122
$doc = \Dom\HTMLDocument::createFromString('<!DOCTYPE html><html><body><p>foo</p></body></html>');
@@ -143,7 +143,7 @@ public function testCastText()
143143
);
144144
}
145145

146-
#[RequiresPhp('8.4')]
146+
#[RequiresPhp('>=8.4')]
147147
public function testCastModernText()
148148
{
149149
$text = \Dom\HTMLDocument::createEmpty()->createTextNode('foo');
@@ -169,7 +169,7 @@ public function testCastAttr()
169169
);
170170
}
171171

172-
#[RequiresPhp('8.4')]
172+
#[RequiresPhp('>=8.4')]
173173
public function testCastModernAttr()
174174
{
175175
$attr = \Dom\HTMLDocument::createEmpty()->createAttribute('attr');
@@ -196,7 +196,7 @@ public function testCastElement()
196196
);
197197
}
198198

199-
#[RequiresPhp('8.4')]
199+
#[RequiresPhp('>=8.4')]
200200
public function testCastModernElement()
201201
{
202202
$attr = \Dom\HTMLDocument::createEmpty()->createElement('foo');
@@ -226,7 +226,7 @@ public function testCastDocumentType()
226226
);
227227
}
228228

229-
#[RequiresPhp('8.4')]
229+
#[RequiresPhp('>=8.4')]
230230
public function testCastModernDocumentType()
231231
{
232232
$implementation = new \Dom\Implementation();
@@ -254,7 +254,7 @@ public function testCastProcessingInstruction()
254254
);
255255
}
256256

257-
#[RequiresPhp('8.4')]
257+
#[RequiresPhp('>=8.4')]
258258
public function testCastModernProcessingInstruction()
259259
{
260260
$entity = \Dom\HTMLDocument::createEmpty()->createProcessingInstruction('target', 'data');
@@ -282,7 +282,7 @@ public function testCastXPath()
282282
);
283283
}
284284

285-
#[RequiresPhp('8.4')]
285+
#[RequiresPhp('>=8.4')]
286286
public function testCastModernXPath()
287287
{
288288
$entity = new \Dom\XPath(\Dom\HTMLDocument::createEmpty());

Tests/Caster/ReflectionCasterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ public function testGeneratorPriorTo84()
531531
$this->assertDumpMatchesFormat($expectedDump, $generator);
532532
}
533533

534-
#[RequiresPhp('8.4')]
534+
#[RequiresPhp('>=8.4')]
535535
public function testGenerator()
536536
{
537537
if (\extension_loaded('xdebug')) {

Tests/Caster/ResourceCasterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testCastDbaPriorToPhp84()
6666
);
6767
}
6868

69-
#[RequiresPhp('8.4.2')]
69+
#[RequiresPhp('>=8.4.2')]
7070
#[RequiresPhpExtension('dba')]
7171
public function testCastDba()
7272
{
@@ -82,7 +82,7 @@ public function testCastDba()
8282
);
8383
}
8484

85-
#[RequiresPhp('8.4')]
85+
#[RequiresPhp('>=8.4')]
8686
#[RequiresPhpExtension('dba')]
8787
public function testCastDbaOnBuggyPhp84()
8888
{

Tests/Caster/SocketCasterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SocketCasterTest extends TestCase
2121
{
2222
use VarDumperTestTrait;
2323

24-
#[RequiresPhp('8.3')]
24+
#[RequiresPhp('>=8.3')]
2525
public function testCastSocket()
2626
{
2727
$socket = socket_create(\AF_INET, \SOCK_DGRAM, \SOL_UDP);
@@ -56,7 +56,7 @@ public function testCastSocketPriorToPhp83()
5656
);
5757
}
5858

59-
#[RequiresPhp('8.3')]
59+
#[RequiresPhp('>=8.3')]
6060
public function testCastSocketIpV6()
6161
{
6262
$socket = socket_create(\AF_INET6, \SOCK_STREAM, \SOL_TCP);
@@ -93,7 +93,7 @@ public function testCastSocketIpV6PriorToPhp83()
9393
);
9494
}
9595

96-
#[RequiresPhp('8.3')]
96+
#[RequiresPhp('>=8.3')]
9797
public function testCastUnixSocket()
9898
{
9999
$socket = socket_create(\AF_UNIX, \SOCK_STREAM, 0);

Tests/Caster/StubCasterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testEmptyStub()
104104
$this->assertDumpMatchesFormat($expectedDump, $args);
105105
}
106106

107-
#[RequiresPhp('8.4')]
107+
#[RequiresPhp('>=8.4')]
108108
public function testVirtualPropertyStub()
109109
{
110110
$class = new \ReflectionClass(VirtualProperty::class);
@@ -119,7 +119,7 @@ public function testVirtualPropertyStub()
119119
$this->assertDumpMatchesFormat($expectedDump, $args);
120120
}
121121

122-
#[RequiresPhp('8.4')]
122+
#[RequiresPhp('>=8.4')]
123123
public function testVirtualPropertyWithoutTypeStub()
124124
{
125125
$class = new \ReflectionClass(VirtualProperty::class);

Tests/Caster/XmlReaderCasterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testParserPropertyPriorToPhp84()
5555
$this->assertDumpMatchesFormat($expectedDump, $this->reader);
5656
}
5757

58-
#[RequiresPhp('8.4')]
58+
#[RequiresPhp('>=8.4')]
5959
public function testParserProperty()
6060
{
6161
$this->reader->setParserProperty(\XMLReader::SUBST_ENTITIES, true);
@@ -286,7 +286,7 @@ public function testWithUninitializedXMLReaderPriorToPhp84()
286286
$this->assertDumpMatchesFormat($expectedDump, $this->reader);
287287
}
288288

289-
#[RequiresPhp('8.4')]
289+
#[RequiresPhp('>=8.4')]
290290
public function testWithUninitializedXMLReader()
291291
{
292292
$this->reader = new \XMLReader();

Tests/Dumper/CliDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public function testFlags()
301301
putenv('DUMP_STRING_LENGTH=');
302302
}
303303

304-
#[RequiresPhp('8.4')]
304+
#[RequiresPhp('>=8.4')]
305305
public function testVirtualProperties()
306306
{
307307
$this->assertDumpEquals(<<<EODUMP

Tests/Dumper/HtmlDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testGet()
119119
);
120120
}
121121

122-
#[RequiresPhp('8.4')]
122+
#[RequiresPhp('>=8.4')]
123123
public function testVirtualProperties()
124124
{
125125
$dumper = new HtmlDumper('php://output');

0 commit comments

Comments
 (0)