Skip to content

Commit db16f6f

Browse files
committed
Review the usage of apostrophes in error messages
Additionally, fixing some capitalization problems and wordings.
1 parent 1179686 commit db16f6f

File tree

181 files changed

+342
-344
lines changed

Some content is hidden

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

181 files changed

+342
-344
lines changed

Zend/tests/018.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var_dump(constant("TEST_CONST2"));
1818
echo "Done\n";
1919
?>
2020
--EXPECT--
21-
Undefined constant ''
21+
Undefined constant
2222
int(1)
2323
string(4) "test"
2424
Done

Zend/tests/024.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ NULL
4141
Warning: Undefined variable $b in %s on line %d
4242
int(1)
4343

44-
Warning: Attempt to read property '1' on int in %s on line %d
44+
Warning: Attempt to read property "1" on int in %s on line %d
4545
NULL
4646

47-
Warning: Attempt to read property '1' on int in %s on line %d
47+
Warning: Attempt to read property "1" on int in %s on line %d
4848
NULL
4949

5050
Warning: Undefined variable $c in %s on line %d
5151

5252
Warning: Trying to access array offset on value of type null in %s on line %d
5353

54-
Warning: Attempt to read property '1' on int in %s on line %d
54+
Warning: Attempt to read property "1" on int in %s on line %d
5555

56-
Warning: Attempt to read property '' on null in %s on line %d
56+
Warning: Attempt to read property "" on null in %s on line %d
5757
NULL

Zend/tests/026.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ print "ok\n";
2222

2323
?>
2424
--EXPECTF--
25-
Warning: Attempt to read property 'a' on null in %s on line %d
25+
Warning: Attempt to read property "a" on null in %s on line %d
2626
ok
27-
Attempt to assign property 'a' on null
27+
Attempt to assign property "a" on null
2828
ok

Zend/tests/033.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ Warning: Trying to access array offset on value of type null in %s on line %d
6161

6262
Warning: Trying to access array offset on value of type null in %s on line %d
6363

64-
Warning: Attempt to read property 'foo' on null in %s on line %d
65-
Attempt to assign property 'foo' on null
66-
Attempt to assign property 'bar' on null
64+
Warning: Attempt to read property "foo" on null in %s on line %d
65+
Attempt to assign property "foo" on null
66+
Attempt to assign property "bar" on null

Zend/tests/access_modifiers_008.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ B2::test();
1818

1919
?>
2020
--EXPECTF--
21-
Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
21+
Fatal error: Call to protected method B1::f() from context "B2" in %s on line %d

Zend/tests/access_modifiers_009.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ B2::test();
2323
--EXPECTF--
2424
bool(false)
2525

26-
Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d
26+
Fatal error: Call to protected method B1::f() from context "B2" in %s on line %d

Zend/tests/access_modifiers_010.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ new c;
2828

2929
?>
3030
--EXPECTF--
31-
Fatal error: Uncaught Error: Call to private method d::test2() from context 'a' in %s:%d
31+
Fatal error: Uncaught Error: Call to private method d::test2() from context "a" in %s:%d
3232
Stack trace:
3333
#0 %s(%d): a->test()
3434
#1 %s(%d): c->__construct()

Zend/tests/array_unpack/classes.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ array(3) {
4343
[2]=>
4444
int(3)
4545
}
46-
Exception: Cannot declare self-referencing constant 'self::B'
46+
Exception: Cannot declare self-referencing constant self::B

Zend/tests/assign_dim_obj_null_return.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ Cannot add element to the array as the next element is already occupied
7979
Illegal offset type
8080
Illegal offset type
8181
Cannot use a scalar value as an array
82-
Attempt to assign property 'foo' on bool
83-
Attempt to assign property 'foo' on bool
82+
Attempt to assign property "foo" on bool
83+
Attempt to assign property "foo" on bool

Zend/tests/bug29015.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ object(stdClass)#1 (1) {
1515
string(10) "string('')"
1616
}
1717

18-
Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d
18+
Fatal error: Uncaught Error: Cannot access property starting with "\0" in %s:%d
1919
Stack trace:
2020
#0 {main}
2121
thrown in %s on line %d

0 commit comments

Comments
 (0)