Skip to content

Commit

Permalink
style: composer cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 2, 2024
1 parent b0e6329 commit 344cc51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Libraries/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function getReleases(): array

foreach ($this->config->repos as $id => $segments) {
// We only care about frameworks
if (strpos($id, 'framework') === false) {
if (! str_contains($id, 'framework')) {
continue;
}

Expand Down
4 changes: 1 addition & 3 deletions tests/entities/ContributorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*/
final class ContributorTest extends ProjectTestCase
{
/**
* @dataProvider provideStars
*/
#[PHPUnit\Framework\Attributes\DataProvider('provideStars')]

Check failure on line 11 in tests/entities/ContributorTest.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 Static Analysis

Attribute class PHPUnit\Framework\Attributes\DataProvider does not exist.

Check failure on line 11 in tests/entities/ContributorTest.php

View workflow job for this annotation

GitHub Actions / psalm / Psalm Analysis

UndefinedAttributeClass

tests/entities/ContributorTest.php:11:7: UndefinedAttributeClass: Attribute class PHPUnit\Framework\Attributes\DataProvider does not exist (see https://psalm.dev/241)
public function testStars(int $contributions, string $expected)
{
$contributor = new Contributor(['contributions' => $contributions]);
Expand Down

0 comments on commit 344cc51

Please sign in to comment.