From 85aa518a8093bc12d5a0f9eb6c4a2bb65db5ba02 Mon Sep 17 00:00:00 2001 From: Dennis Elsinga Date: Mon, 9 Sep 2024 10:57:13 +0200 Subject: [PATCH 1/6] Testing --- app/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers.php b/app/Helpers.php index 2025885..627c59d 100644 --- a/app/Helpers.php +++ b/app/Helpers.php @@ -5,7 +5,7 @@ * Make sure to use the `function_exists` check to not declare the function twice. */ -if (! function_exists('example')) { +if (!function_exists('example')) { function example(): string { return 'This is an example function you can use in your project.'; From 5ec16270a24fed0017c9fd33fb62573be20b38b8 Mon Sep 17 00:00:00 2001 From: CodeWithDennis Date: Mon, 9 Sep 2024 08:57:39 +0000 Subject: [PATCH 2/6] Fix styling --- app/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers.php b/app/Helpers.php index 627c59d..2025885 100644 --- a/app/Helpers.php +++ b/app/Helpers.php @@ -5,7 +5,7 @@ * Make sure to use the `function_exists` check to not declare the function twice. */ -if (!function_exists('example')) { +if (! function_exists('example')) { function example(): string { return 'This is an example function you can use in your project.'; From 08b7fa22cbef52938dc7763956eb9f0bd0310889 Mon Sep 17 00:00:00 2001 From: Dennis Elsinga Date: Mon, 9 Sep 2024 10:59:36 +0200 Subject: [PATCH 3/6] Testing --- app/Helpers.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Helpers.php b/app/Helpers.php index 2025885..74d79be 100644 --- a/app/Helpers.php +++ b/app/Helpers.php @@ -8,6 +8,7 @@ if (! function_exists('example')) { function example(): string { + // testing... return 'This is an example function you can use in your project.'; } } From 959cb138e25fd74bba5c4dc8ceee79196157bba3 Mon Sep 17 00:00:00 2001 From: Dennis Elsinga Date: Mon, 9 Sep 2024 11:23:59 +0200 Subject: [PATCH 4/6] Testing phpstan --- app/Providers/AppServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index fc6f881..b31c085 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -29,7 +29,7 @@ protected function translatableComponents(): void foreach ([Field::class, BaseFilter::class, Placeholder::class, Column::class, Entry::class] as $component) { /* @var Configurable $component */ $component::configureUsing(function (Component $translatable): void { - /** @phpstan-ignore method.notFound */ + $translatable->translateLabel(); }); } From 6e2ad9400f4167fe13b441f4372280e4625a2949 Mon Sep 17 00:00:00 2001 From: CodeWithDennis Date: Mon, 9 Sep 2024 09:24:23 +0000 Subject: [PATCH 5/6] Fix styling --- app/Providers/AppServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index b31c085..87a9f7e 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -29,7 +29,7 @@ protected function translatableComponents(): void foreach ([Field::class, BaseFilter::class, Placeholder::class, Column::class, Entry::class] as $component) { /* @var Configurable $component */ $component::configureUsing(function (Component $translatable): void { - + $translatable->translateLabel(); }); } From 7730f5ca5029dfe7ca029229a87a91a647787f36 Mon Sep 17 00:00:00 2001 From: Dennis Elsinga Date: Mon, 9 Sep 2024 11:26:40 +0200 Subject: [PATCH 6/6] Update job name to "PHPStan" in phpstan.yml --- .github/workflows/phpstan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 4eaf044..bf4267c 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -11,7 +11,7 @@ on: jobs: phpstan: - name: phpstan + name: PHPStan runs-on: ubuntu-latest steps: - uses: actions/checkout@v4