Skip to content

Commit

Permalink
Laravel 11.21: Update Dependencies (#37)
Browse files Browse the repository at this point in the history
## About

- Updates lock file.
- Allows any version of LEC.

---
  • Loading branch information
michael-rubel authored Aug 21, 2024
1 parent 9dcdaeb commit b173833
Show file tree
Hide file tree
Showing 8 changed files with 846 additions and 770 deletions.
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 {}

0 comments on commit b173833

Please sign in to comment.