[BUGFIX] PHP 7.1: Non-numeric value encountered 13/48813/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 5 Jul 2016 21:29:44 +0000 (23:29 +0200)
committerSteffen Müller <typo3@t3node.com>
Wed, 6 Jul 2016 11:05:48 +0000 (13:05 +0200)
$foo = 1 + 'aString'; in PHP 7.1 throws:
PHP Warning: A non-numeric value encountered in ...

Fix this by removing a test that tests this language
construct only instead of the test subject.

Change-Id: I74117cfd003bb525b0a7a674df4aae45d8f92299
Resolves: #76948
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/48813
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Steffen Müller <typo3@t3node.com>
Tested-by: Steffen Müller <typo3@t3node.com>
typo3/sysext/form/Tests/Unit/Filter/IntegerFilterTest.php

index 1fbbc94..e21ebce 100644 (file)
@@ -35,7 +35,6 @@ class IntegerFilterTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
             '"1" -> 1' => array('1', 1),
             '1 -> 1' => array(1, 1),
             '1.1 -> 1' => array(1.1, 1),
-            '1+E42 -> 1' => array(1+'E42', 1),
             'a -> 0' => array('a', 0),
             'a42 -> 0' => array('a42', 0),
             '-100.00 -> -100' => array(-100.00, -100),