Skip to content

Commit acfef6b

Browse files
ArshidArshid
authored andcommitted
[PHP 8.5] Introduce PhpVersion::DEPRECATE_ORD_WITH_MULTIBYTE_STRING
1 parent 3820cb2 commit acfef6b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

config/set/php85.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Rector\Php85\Rector\ClassMethod\NullDebugInfoReturnRector;
1212
use Rector\Php85\Rector\Const_\DeprecatedAnnotationToDeprecatedAttributeRector;
1313
use Rector\Php85\Rector\FuncCall\ArrayKeyExistsNullToEmptyStringRector;
14-
use Rector\Php85\Rector\FuncCall\ChrArgModuloRector;
1514
use Rector\Php85\Rector\FuncCall\OrdSingleByteRector;
1615
use Rector\Php85\Rector\FuncCall\RemoveFinfoBufferContextArgRector;
1716
use Rector\Php85\Rector\Switch_\ColonAfterSwitchCaseRector;
@@ -37,7 +36,6 @@
3736
DeprecatedAnnotationToDeprecatedAttributeRector::class,
3837
ColonAfterSwitchCaseRector::class,
3938
ArrayKeyExistsNullToEmptyStringRector::class,
40-
ChrArgModuloRector::class,
4139
OrdSingleByteRector::class,
4240
]
4341
);

src/ValueObject/PhpVersionFeature.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,10 +804,19 @@ final class PhpVersionFeature
804804
* @var int
805805
*/
806806
public const DEPRECATE_NULL_ARG_IN_ARRAY_KEY_EXISTS_FUNCTION = PhpVersion::PHP_85;
807+
<<<<<<< HEAD
807808

808809
/**
809810
* @see https://wiki.php.net/rfc/deprecations_php_8_5#eprecate_passing_integers_outside_the_interval_0_255_to_chr
810811
* @var int
811812
*/
812813
public const DEPRECATE_OUTSIDE_INTERVEL_VAL_IN_CHR_FUNCTION = PhpVersion::PHP_85;
814+
=======
815+
816+
/**
817+
* @see https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_string_which_are_not_one_byte_long_to_ord
818+
* @var int
819+
*/
820+
public const DEPRECATE_ORD_WITH_MULTIBYTE_STRING = PhpVersion::PHP_85;
821+
>>>>>>> cbf11f5bfe ([PHP 8.5] Introduce PhpVersion::DEPRECATE_ORD_WITH_MULTIBYTE_STRING)
813822
}

0 commit comments

Comments
 (0)