Skip to content

Commit f24e4eb

Browse files
committed
return type fixes aligned with LanguageLevelTypeAware
moved StubsConstantsAndParametersValuesTest to 8.2 suite
1 parent 497aab2 commit f24e4eb

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

Reflection/ReflectionEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ public function isBacked(): bool {}
3636
* @return ReflectionType|null
3737
*/
3838
#[LanguageLevelTypeAware(['8.2' => 'null|ReflectionNamedType'], default: 'null|ReflectionType')]
39-
public function getBackingType(): ?ReflectionType {}
39+
public function getBackingType() {}
4040
}

SPL/SPL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function key(): never {}
132132
*/
133133
#[TentativeType]
134134
#[LanguageLevelTypeAware(['8.2' => 'false'], default: 'bool')]
135-
public function valid(): bool {}
135+
public function valid() {}
136136

137137
/**
138138
* Rewind the Iterator to the first element

SPL/SPL_c1.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ public function getMaxLineLen(): int {}
991991
*/
992992
#[TentativeType]
993993
#[LanguageLevelTypeAware(['8.2' => 'false'], default: 'bool')]
994-
public function hasChildren(): bool {}
994+
public function hasChildren() {}
995995

996996
/**
997997
* No purpose
@@ -1000,7 +1000,7 @@ public function hasChildren(): bool {}
10001000
*/
10011001
#[TentativeType]
10021002
#[LanguageLevelTypeAware(['8.2' => 'null|null'], default: 'null|RecursiveIterator')]
1003-
public function getChildren(): ?RecursiveIterator {}
1003+
public function getChildren() {}
10041004

10051005
/**
10061006
* Seek to specified line

date/date_c.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public static function createFromFormat(
220220
*/
221221
#[TentativeType]
222222
#[LanguageLevelTypeAware(['8.2' => 'static'], default: 'DateTimeImmutable')]
223-
public static function createFromMutable(DateTime $object): DateTimeImmutable {}
223+
public static function createFromMutable(DateTime $object) {}
224224

225225
/**
226226
* (PHP 5 &gt;=5.5.0)<br/>
@@ -574,7 +574,7 @@ public function add(DateInterval $interval): DateTime {}
574574
*/
575575
#[TentativeType]
576576
#[LanguageLevelTypeAware(['8.2' => 'static'], default: 'DateTime')]
577-
public static function createFromImmutable(DateTimeImmutable $object): DateTime {}
577+
public static function createFromImmutable(DateTimeImmutable $object) {}
578578

579579
/**
580580
* Subtracts an amount of days, months, years, hours, minutes and seconds from a DateTime object
@@ -949,7 +949,6 @@ class DatePeriod implements IteratorAggregate
949949
/**
950950
* @since 8.2
951951
*/
952-
#[Immutable]
953952
public const INCLUDE_END_DATE = 2;
954953

955954
/**

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
<file>tests/BaseClassesTest.php</file>
6969
<file>tests/BaseConstantsTest.php</file>
7070
<file>tests/BaseFunctionsTest.php</file>
71-
<file>tests/StubsConstantsAndParametersValuesTest.php</file>
7271
<file>tests/StubsMetaExpectedArgumentsTest.php</file>
7372
<file>tests/StubsMetaInternalTagTest.php</file>
7473
<file>tests/StubsParameterNamesTest.php</file>

0 commit comments

Comments
 (0)