Skip to content

Commit

Permalink
Changelog for #2745 (ref #2746)
Browse files Browse the repository at this point in the history
Includes fix for unit test
  • Loading branch information
gsherwood committed Jan 14, 2020
1 parent 1ef22b8 commit dfd9eb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
-- Thanks to Matthew Peveler for the patch
- Fixed bug #2730 : PSR12.ControlStructures.ControlStructureSpacing does not ignore comments between conditions
-- Thanks to Juliette Reinders Folmer for the patch
- Fixed bug #2745 : AbstractArraySniff wrong indices when mixed coalesce and ternary values
-- Thanks to Michał Bundyra for the patch
- Fixed bug #2748 : Wrong end of statement for fn closures
-- Thanks to Michał Bundyra for the patch
- Fixed bug #2751 : Autoload relative paths first to avoid confusion with files from the global include path
Expand Down
2 changes: 1 addition & 1 deletion tests/Core/Sniffs/AbstractArraySniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function testMissingKeysCoalesceTernary()
*/
public function testTernaryValues()
{
$token = $this->getTargetToken('/* testTernaryValues */', T_ARRAY);
$token = $this->getTargetToken('/* testTernaryValues */', T_OPEN_SHORT_ARRAY);
self::$sniff->process(self::$phpcsFile, $token);

$expected = [
Expand Down

0 comments on commit dfd9eb1

Please sign in to comment.