Skip to content

Commit

Permalink
Use pint
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed May 16, 2024
1 parent c7b0b09 commit fc7348d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 32 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
with:
php-version: '8.3'
coverage: pcov
tools: infection, php-cs-fixer, phpstan
tools: infection, pint, phpstan

- name: Install dependencies
run: composer install

- name: Check platform requirements
run: composer check-platform-reqs

- name: PHP-CS-Fixer
run: php-cs-fixer fix --dry-run
- name: Pint
run: pint --test

- name: Infection
run: infection --min-msi=100
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
/.php_cs.cache
/coverage
/infection.log
/.php-cs-fixer.cache
26 changes: 0 additions & 26 deletions .php-cs-fixer.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/CallableFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function assertCalledTimes(callable $callback, int $times): self
}

/**
* @param array<int, int>|int $indexes
* @param array<int, int>|int $indexes
*/
public function assertCalledIndex(callable $callback, $indexes): self
{
Expand Down
2 changes: 1 addition & 1 deletion tests/CallableFakeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function testAssertCalledWithTrueAfterBeingCalled(): void
$fake('a');

$fake->assertCalled(static function (string $arg) {
return 'a' === $arg;
return $arg === 'a';
});
}

Expand Down

0 comments on commit fc7348d

Please sign in to comment.