Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
prepare for error_php_lambdas (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexidor authored and jjergus committed Nov 22, 2019
1 parent 607c2f8 commit 2506257
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Writer.hack
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ final class Writer {
);

$map = \array_map(
function($sub_map): mixed {
($sub_map): mixed ==> {
assert(\is_array($sub_map));
return \array_map($path ==> $this->relativePath($path), $sub_map);
},
Expand Down
2 changes: 1 addition & 1 deletion src/filters/BasePSRFilter.hack
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ abstract class BasePSRFilter implements Builder {
$classes = (
new Map($this->source->getAutoloadMap()['class'])
)->filterWithKey(
function(string $class_name, string $file): bool {
(string $class_name, string $file): bool ==> {
if (
$this->prefix !== '' && \stripos($class_name, $this->prefix) !== 0
) {
Expand Down
2 changes: 1 addition & 1 deletion src/filters/PathExclusionFilter.hack
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class PathExclusionFilter implements Builder {
private function filter(array<string, string> $map): array<string, string> {
return \array_filter(
$map,
function(string $path): bool {
(string $path): bool ==> {
foreach ($this->prefixes as $prefix) {
if (\strpos($path, $prefix) === 0) {
return false;
Expand Down

0 comments on commit 2506257

Please sign in to comment.