Skip to content

Commit 79e860c

Browse files
committed
Merge branch '2.16'
# Conflicts: # src/Console/Application.php
2 parents 9076c1d + 1d97e2b commit 79e860c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Documentation/DocumentationGenerator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct()
5353
'toFile' => 'New',
5454
]));
5555

56-
$this->path = \dirname(\dirname(__DIR__)).'/doc/rules';
56+
$this->path = \dirname(__DIR__, 2).'/doc/rules';
5757
}
5858

5959
/**
@@ -358,7 +358,7 @@ private function generateSampleDiff(FixerInterface $fixer, CodeSampleInterface $
358358
the sample is not suitable for current version of PHP (%s).
359359
RST;
360360

361-
return sprintf($error, \PHP_VERSION);
361+
return sprintf($error, PHP_VERSION);
362362
}
363363

364364
$old = $sample->getCode();
@@ -380,7 +380,7 @@ private function generateSampleDiff(FixerInterface $fixer, CodeSampleInterface $
380380
// Psr0Fixer relies on realpath() which fails for directories
381381
// relative to some path when the working directory is a
382382
// different path. Using an absolute path prevents this issue.
383-
$configuration['dir'] = \dirname(\dirname(__DIR__)).substr($configuration['dir'], 1);
383+
$configuration['dir'] = \dirname(__DIR__, 2).substr($configuration['dir'], 1);
384384
}
385385

386386
$fixer->configure($configuration);

src/Fixer/Alias/NoAliasFunctionsFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
final class NoAliasFunctionsFixer extends AbstractFixer implements ConfigurationDefinitionFixerInterface
3232
{
33-
/** @var array<string, string> stores alias (key) - master (value) functions mapping */
33+
/** @var array<string, array<int|string>|string> stores alias (key) - master (value) functions mapping */
3434
private $aliases = [];
3535

3636
/** @var array<string, string> stores alias (key) - master (value) functions mapping */

0 commit comments

Comments
 (0)