diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-02-04 11:33:49 -0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-02-04 19:08:23 +0100 |
commit | ce1d69a1f6dcf15d43029301059c25e5bc09a577 (patch) | |
tree | 3df785771b4bfa07a9e270b04750840ed47f1cbf /ext/standard/tests/strings/chunk_split_variation2.phpt | |
parent | 4861730a945908208a049b0c037ddf4a339f999a (diff) | |
download | php-git-ce1d69a1f6dcf15d43029301059c25e5bc09a577.tar.gz |
Use int instead of integer in type errors
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
Diffstat (limited to 'ext/standard/tests/strings/chunk_split_variation2.phpt')
-rw-r--r-- | ext/standard/tests/strings/chunk_split_variation2.phpt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/standard/tests/strings/chunk_split_variation2.phpt b/ext/standard/tests/strings/chunk_split_variation2.phpt index 9240ed3ea0..195e2d2605 100644 --- a/ext/standard/tests/strings/chunk_split_variation2.phpt +++ b/ext/standard/tests/strings/chunk_split_variation2.phpt @@ -100,7 +100,7 @@ Warning: chunk_split(): Chunk length should be greater than zero in %schunk_spli bool(false) -- Iteration 3 -- -Warning: chunk_split() expects parameter 2 to be integer, float given in %s on line %d +Warning: chunk_split() expects parameter 2 to be int, float given in %s on line %d NULL -- Iteration 4 -- @@ -112,23 +112,23 @@ Warning: chunk_split(): Chunk length should be greater than zero in %schunk_spli bool(false) -- Iteration 6 -- -Warning: chunk_split() expects parameter 2 to be integer, array given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, array given in %schunk_split_variation2.php on line %d NULL -- Iteration 7 -- -Warning: chunk_split() expects parameter 2 to be integer, array given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, array given in %schunk_split_variation2.php on line %d NULL -- Iteration 8 -- -Warning: chunk_split() expects parameter 2 to be integer, array given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, array given in %schunk_split_variation2.php on line %d NULL -- Iteration 9 -- -Warning: chunk_split() expects parameter 2 to be integer, array given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, array given in %schunk_split_variation2.php on line %d NULL -- Iteration 10 -- -Warning: chunk_split() expects parameter 2 to be integer, array given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, array given in %schunk_split_variation2.php on line %d NULL -- Iteration 11 -- @@ -152,23 +152,23 @@ Warning: chunk_split(): Chunk length should be greater than zero in %schunk_spli bool(false) -- Iteration 17 -- -Warning: chunk_split() expects parameter 2 to be integer, string given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, string given in %schunk_split_variation2.php on line %d NULL -- Iteration 18 -- -Warning: chunk_split() expects parameter 2 to be integer, string given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, string given in %schunk_split_variation2.php on line %d NULL -- Iteration 19 -- -Warning: chunk_split() expects parameter 2 to be integer, string given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, string given in %schunk_split_variation2.php on line %d NULL -- Iteration 20 -- -Warning: chunk_split() expects parameter 2 to be integer, string given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, string given in %schunk_split_variation2.php on line %d NULL -- Iteration 21 -- -Warning: chunk_split() expects parameter 2 to be integer, object given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, object given in %schunk_split_variation2.php on line %d NULL -- Iteration 22 -- @@ -180,6 +180,6 @@ Warning: chunk_split(): Chunk length should be greater than zero in %schunk_spli bool(false) -- Iteration 24 -- -Warning: chunk_split() expects parameter 2 to be integer, resource given in %schunk_split_variation2.php on line %d +Warning: chunk_split() expects parameter 2 to be int, resource given in %schunk_split_variation2.php on line %d NULL ===DONE=== |