Skip to content

Commit dfd9eb1

Browse files
committed
Changelog for #2745 (ref #2746)
Includes fix for unit test
1 parent 1ef22b8 commit dfd9eb1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
5151
-- Thanks to Matthew Peveler for the patch
5252
- Fixed bug #2730 : PSR12.ControlStructures.ControlStructureSpacing does not ignore comments between conditions
5353
-- Thanks to Juliette Reinders Folmer for the patch
54+
- Fixed bug #2745 : AbstractArraySniff wrong indices when mixed coalesce and ternary values
55+
-- Thanks to Michał Bundyra for the patch
5456
- Fixed bug #2748 : Wrong end of statement for fn closures
5557
-- Thanks to Michał Bundyra for the patch
5658
- Fixed bug #2751 : Autoload relative paths first to avoid confusion with files from the global include path

tests/Core/Sniffs/AbstractArraySniffTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function testMissingKeysCoalesceTernary()
198198
*/
199199
public function testTernaryValues()
200200
{
201-
$token = $this->getTargetToken('/* testTernaryValues */', T_ARRAY);
201+
$token = $this->getTargetToken('/* testTernaryValues */', T_OPEN_SHORT_ARRAY);
202202
self::$sniff->process(self::$phpcsFile, $token);
203203

204204
$expected = [

0 commit comments

Comments
 (0)