[BUGFIX] PHP 7.1: Non-numeric value encountered 06/49506/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 5 Jul 2016 21:29:44 +0000 (23:29 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 18 Aug 2016 12:47:18 +0000 (14:47 +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/49506
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
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),