Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 11.21: Update Dependencies #37

Merged
merged 2 commits into from
Aug 21, 2024
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": "^8.1",
"ext-intl": "*",
"illuminate/contracts": "^10.0|^11.0",
"michael-rubel/laravel-enhanced-container": "^12.0",
"michael-rubel/laravel-enhanced-container": "*",
"spatie/laravel-package-tools": "^1.16"
},
"require-dev": {
Expand Down
1,595 changes: 838 additions & 757 deletions composer.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/Collection/LocaleNumberFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public function __construct(
public int $fraction_digits = 2,
public ?string $grouping_separator = null,
public ?string $decimal_separator = null,
) {
}
) {}

/**
* Format the number based on locale.
Expand Down
3 changes: 1 addition & 2 deletions src/Collection/MaskStringFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public function __construct(
public int $index = 4,
public int $length = -4,
public string $encoding = 'UTF-8',
) {
}
) {}

/**
* Mask the string.
Expand Down
3 changes: 1 addition & 2 deletions src/Collection/TableColumnFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class TableColumnFormatter implements Formatter
*/
public function __construct(
public ?string $attribute = null
) {
}
) {}

/**
* Format the snake-cased attributes in readable format for the tables.
Expand Down
4 changes: 2 additions & 2 deletions src/FormatterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public static function ensureFormatterImplementsInterface(object $formatter): vo
{
if (! $formatter instanceof Formatter) {
if (config('formatters.bindings_case') === 'camel') {
throw new ShouldNotUseCamelCaseException();
throw new ShouldNotUseCamelCaseException;
}

throw new ShouldImplementInterfaceException();
throw new ShouldImplementInterfaceException;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/FormatterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function packageRegistered(): void

$appFormatters = $filesystem->isDirectory(base_path($app_folder))
? collect($filesystem->allFiles(base_path($app_folder)))
: new Collection();
: new Collection;

$packageFormatters = collect(
$filesystem->allFiles($this->getPackageDirectory())
Expand Down
4 changes: 1 addition & 3 deletions tests/DateFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,4 @@ public function testCanFormatDateLocalized()
}
}

class WrongFormatter
{
}
class WrongFormatter {}
Loading