Skip to content

Commit dd23d6a

Browse files
committed
Update: Unit Test to #20632
1 parent 7883185 commit dd23d6a

Some content is hidden

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

48 files changed

+1286
-1286
lines changed

Zend/tests/add_006.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ var_dump($c);
4545
echo "Done\n";
4646
?>
4747
--EXPECTF--
48-
Unsupported operand types: int + non-numeric string
48+
Unsupported operand types: int + non-numeric-string
4949

5050
Warning: A non-numeric value encountered in %s on line %d
5151
int(951858)
5252
int(48550510)
5353
float(75661.68)
54-
Unsupported operand types: non-numeric string + int
54+
Unsupported operand types: non-numeric-string + int
5555

5656
Warning: A non-numeric value encountered in %s on line %d
5757
int(951858)

Zend/tests/add_007.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ var_dump($c);
1919
echo "Done\n";
2020
?>
2121
--EXPECTF--
22-
Exception: Unsupported operand types: array + non-numeric string
22+
Exception: Unsupported operand types: array + non-numeric-string
2323

24-
Fatal error: Uncaught TypeError: Unsupported operand types: array + non-numeric string in %s:%d
24+
Fatal error: Uncaught TypeError: Unsupported operand types: array + non-numeric-string in %s:%d
2525
Stack trace:
2626
#0 {main}
2727
thrown in %s on line %d

Zend/tests/arrow_functions/006.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ try {
3232
--EXPECTF--
3333
int(2)
3434
int(10)
35-
{closure:%s:%d}(): Argument #1 ($x) must be of type int, non-numeric string given, called in %s on line %d
35+
{closure:%s:%d}(): Argument #1 ($x) must be of type int, non-numeric-string given, called in %s on line %d
3636
array(3) {
3737
[0]=>
3838
int(20)
@@ -41,4 +41,4 @@ array(3) {
4141
[2]=>
4242
int(30)
4343
}
44-
{closure:%s:%d}(): Argument #2 must be of type ?int, non-numeric string given, called in %s on line %d
44+
{closure:%s:%d}(): Argument #2 must be of type ?int, non-numeric-string given, called in %s on line %d

Zend/tests/assign_op_type_error.phpt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ try {
4747

4848
?>
4949
--EXPECT--
50-
Unsupported operand types: array + non-numeric string
51-
Unsupported operand types: array - non-numeric string
52-
Unsupported operand types: array * non-numeric string
53-
Unsupported operand types: array / non-numeric string
54-
Unsupported operand types: array ** non-numeric string
55-
Unsupported operand types: array % non-numeric string
56-
Unsupported operand types: array << non-numeric string
57-
Unsupported operand types: array >> non-numeric string
50+
Unsupported operand types: array + non-numeric-string
51+
Unsupported operand types: array - non-numeric-string
52+
Unsupported operand types: array * non-numeric-string
53+
Unsupported operand types: array / non-numeric-string
54+
Unsupported operand types: array ** non-numeric-string
55+
Unsupported operand types: array % non-numeric-string
56+
Unsupported operand types: array << non-numeric-string
57+
Unsupported operand types: array >> non-numeric-string

Zend/tests/attributes/030_strict_types.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object(MyAttribute)#1 (1) {
2323
int(42)
2424
}
2525

26-
Fatal error: Uncaught TypeError: MyAttribute::__construct(): Argument #1 ($value) must be of type int, non-numeric string given, called in %s030_strict_types.inc on line 4 and defined in %s030_strict_types.php:5
26+
Fatal error: Uncaught TypeError: MyAttribute::__construct(): Argument #1 ($value) must be of type int, non-numeric-string given, called in %s030_strict_types.inc on line 4 and defined in %s030_strict_types.php:5
2727
Stack trace:
2828
#0 %s030_strict_types.inc(4): MyAttribute->__construct('42')
2929
#1 %s(%d): ReflectionAttribute->newInstance()

Zend/tests/exceptions/exception_017.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Error: Cannot call abstract method C::foo() in %s:%d
2828
Stack trace:
2929
#0 {main}
3030

31-
TypeError: foo(): Argument #1 ($x) must be of type callable, non-numeric string given, called in %s:%d
31+
TypeError: foo(): Argument #1 ($x) must be of type callable, non-numeric-string given, called in %s:%d
3232
Stack trace:
3333
#0 %s(%d): foo('C::foo')
3434
#1 {main}

Zend/tests/fibers/start-arguments.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $fiber->start('test');
2121
--EXPECTF--
2222
int(1)
2323

24-
Fatal error: Uncaught TypeError: {closure:%s:%d}(): Argument #1 ($x) must be of type int, non-numeric string given in %s:%d
24+
Fatal error: Uncaught TypeError: {closure:%s:%d}(): Argument #1 ($x) must be of type int, non-numeric-string given in %s:%d
2525
Stack trace:
2626
#0 [internal function]: {closure:%s:%d}('test')
2727
#1 %sstart-arguments.php(%d): Fiber->start('test')

Zend/tests/first_class_callable/first_class_callable_015.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ try {
2121
?>
2222
--EXPECTF--
2323
int(42)
24-
test(): Argument #1 ($i) must be of type int, non-numeric string given, called in %s on line %d
24+
test(): Argument #1 ($i) must be of type int, non-numeric-string given, called in %s on line %d

Zend/tests/function_arguments/argument_count_incorrect_userland_strict.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ Too few arguments to function bar(), 1 passed in %s and exactly 2 expected
5050
ArgumentCountError
5151
Too few arguments to function bat(), 1 passed in %s and exactly 2 expected
5252
TypeError
53-
bat(): Argument #1 ($foo) must be of type int, non-numeric string given, called in %s on line %d
53+
bat(): Argument #1 ($foo) must be of type int, non-numeric-string given, called in %s on line %d
5454
TypeError
5555
bat(): Argument #2 ($bar) must be of type string, int given, called in %s on line %d

Zend/tests/gh19719.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ try {
1818

1919
?>
2020
--EXPECTF--
21-
takesInt(): Argument #1 ($x) must be of type int, non-numeric string given, called in %s on line %d
21+
takesInt(): Argument #1 ($x) must be of type int, non-numeric-string given, called in %s on line %d

0 commit comments

Comments
 (0)