Skip to content
Open
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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
- php-version: 8.3
dependencies: "--prefer-lowest --prefer-stable"
test_coverage: "no"
- php-version: 8.4
dependencies: "--prefer-stable"
test_coverage: "no"
- php-version: 8.4
dependencies: "--prefer-lowest --prefer-stable"
test_coverage: "no"

steps:
- name: Setup PHP
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": "^7.2 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "^7.2 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-intl": "*",
"laminas/laminas-eventmanager": "^3.1",
"laminas/laminas-http": "^2.7",
Expand Down
2 changes: 1 addition & 1 deletion src/SlmLocale/Locale/Detector.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function hasMappings()
return is_array($this->mappings) && count($this->mappings);
}

public function detect(RequestInterface $request, ResponseInterface $response = null)
public function detect(RequestInterface $request, ?ResponseInterface $response = null)
{
$event = new LocaleEvent(LocaleEvent::EVENT_DETECT, $this);
$event->setRequest($request);
Expand Down
2 changes: 1 addition & 1 deletion src/SlmLocale/Service/PrimaryLanguageHelperFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ final class PrimaryLanguageHelperFactory implements FactoryInterface
* @param array|null $options
* @return object|PrimaryLanguage
*/
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
{
return new PrimaryLanguage(new Locale());
}
Expand Down
4 changes: 2 additions & 2 deletions src/SlmLocale/Strategy/UriPathStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class UriPathStrategy extends AbstractStrategy
*/
protected $router;

public function __construct(SimpleRouteStack $router = null)
public function __construct(?SimpleRouteStack $router = null)
{
$this->router = $router;
}
Expand Down Expand Up @@ -267,7 +267,7 @@ protected function getAliasForLocale($locale)
* @param RequestInterface|null $request
* @return string|null
*/
protected function getBasePath(RequestInterface $request = null)
protected function getBasePath(?RequestInterface $request = null)
{
$result = null;
if ($this->router instanceof TreeRouteStack) {
Expand Down
2 changes: 1 addition & 1 deletion src/SlmLocale/View/Helper/LocaleUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class LocaleUrl extends AbstractHelper
*/
protected $request;

public function __construct(Detector $detector, Request $request, RouteMatch $match = null)
public function __construct(Detector $detector, Request $request, ?RouteMatch $match = null)
{
$this->detector = $detector;
$this->match = $match;
Expand Down
Loading