fix: resolve PHPStan errors and improve PHPDoc accuracy
Some checks are pending
CI / build (push) Waiting to run

This commit is contained in:
Funky Waddle 2026-02-15 12:51:09 -06:00
parent f4f124708e
commit 41c8c9457c
5 changed files with 6 additions and 12 deletions

View file

@ -160,7 +160,7 @@ class Config implements ArrayAccess, IteratorAggregate
/** /**
* Creates an iterator for the configuration options. * Creates an iterator for the configuration options.
* *
* @return Traversable Array iterator over configuration * @return \Traversable Array iterator over configuration
*/ */
public function getIterator(): \Traversable public function getIterator(): \Traversable
{ {

View file

@ -4,8 +4,6 @@ namespace Atlas\Exception;
/** /**
* Exception thrown when a required configuration value is missing. * Exception thrown when a required configuration value is missing.
*
* @extends \RuntimeException
*/ */
class MissingConfigurationException extends \RuntimeException class MissingConfigurationException extends \RuntimeException
{ {

View file

@ -7,8 +7,6 @@ namespace Atlas\Exception;
* *
* This may occur during matching if no route corresponds to the request, * This may occur during matching if no route corresponds to the request,
* or during URL generation if the requested route name is not registered. * or during URL generation if the requested route name is not registered.
*
* @extends \RuntimeException
*/ */
class RouteNotFoundException extends \RuntimeException class RouteNotFoundException extends \RuntimeException
{ {

View file

@ -4,8 +4,6 @@ namespace Atlas\Exception;
/** /**
* Exception thrown when route parameter validation fails. * Exception thrown when route parameter validation fails.
*
* @extends \RuntimeException
*/ */
class RouteValidationException extends \RuntimeException class RouteValidationException extends \RuntimeException
{ {

View file

@ -4,8 +4,6 @@ namespace Atlas\Router;
/** /**
* Manages groupings of routes for prefix and middleware organization. * Manages groupings of routes for prefix and middleware organization.
*
* @implements \IteratorAggregate<array-key, mixed>
*/ */
class RouteGroup class RouteGroup
{ {
@ -256,9 +254,11 @@ class RouteGroup
} }
/** /**
* Gets all group options. * Registers a module within the group.
* *
* @return array Group options configuration * @param string|array $identifier The module identifier or array of identifiers
* @param string|null $prefix Optional URI prefix
* @return self
*/ */
public function module(string|array $identifier, string|null $prefix = null): self public function module(string|array $identifier, string|null $prefix = null): self
{ {
@ -285,7 +285,7 @@ class RouteGroup
/** /**
* @internal * @internal
*/ */
public function getConfig(): Config public function getConfig(): \Atlas\Config\Config
{ {
return $this->router->getConfig(); return $this->router->getConfig();
} }