Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/test-runner.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Tests

on:
# Run testing on all push and pull requests for the main branch that have committed changes in PHP files
# Run testing on all push and pull requests that have committed changes in PHP files
push:
branches: [ "main" ]
paths:
- '**.php'
- '**/*.php'
pull_request:
branches: [ "main" ]
paths:
- '**.php'
- '**/*.php'
# Make it possible to run the workflow manually
workflow_dispatch:

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
},
"require": {
"php": "^8.2",
"bezhansalleh/filament-shield": "^3.3",
"bezhansalleh/filament-shield": "^4.0",
"datalinx/php-utils": "^2.5",
"filament/filament": "^3.3",
"filament/spatie-laravel-settings-plugin": "^3.3",
"filament/filament": "^4.0",
"filament/spatie-laravel-settings-plugin": "^4.0",
"laravel/scout": "^10.14",
"spatie/laravel-package-tools": "^1.19"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/Filament/Clusters/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Settings extends Cluster
{
protected static ?string $navigationIcon = 'heroicon-o-cog-6-tooth';
protected static string|\BackedEnum|null $navigationIcon = 'heroicon-o-cog-6-tooth';

public static function getNavigationLabel(): string
{
Expand Down
3 changes: 2 additions & 1 deletion src/CommonPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Eclipse\Common;

use Eclipse\Common\Admin\Filament\Clusters\Settings;
use Eclipse\Common\Foundation\Plugins\Plugin;

class CommonPlugin extends Foundation\Plugins\Plugin
class CommonPlugin extends Plugin
{
/**
* Cluster that is used for grouping app and plugin settings
Expand Down
3 changes: 2 additions & 1 deletion src/Foundation/Plugins/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Eclipse\Common\Foundation\Plugins;

use Exception;
use Filament\Panel;
use Illuminate\Support\Str;
use ReflectionClass;
Expand Down Expand Up @@ -36,7 +37,7 @@ public function __construct()
/**
* Register any plugin services.
*
* @throws \Exception
* @throws Exception
*/
public function register(Panel $panel): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/GlobalSearchProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Global search provider that uses Laravel Scout for resources/models that implement it
*/
class GlobalSearchProvider implements \Filament\GlobalSearch\Contracts\GlobalSearchProvider
class GlobalSearchProvider implements \Filament\GlobalSearch\Providers\Contracts\GlobalSearchProvider
{
public function getResults(string $query): ?GlobalSearchResults
{
Expand Down
1 change: 0 additions & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
'--all' => null,
'--panel' => 'admin',
'--option' => 'permissions',
'--minimal' => null,
]);
})
->in(__DIR__);
Expand Down
2 changes: 1 addition & 1 deletion workbench/database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @template TModel of \Workbench\App\Models\User
*
* @extends \Illuminate\Database\Eloquent\Factories\Factory<TModel>
* @extends Factory<TModel>
*/
class UserFactory extends Factory
{
Expand Down
Loading