From 92dda01179ca69dcdfa8180965efea1d06d3d184 Mon Sep 17 00:00:00 2001 From: Ivan Fedorov Date: Fri, 15 Dec 2023 20:42:51 +0100 Subject: [PATCH] [phpstorm-stubs] fix cs-fixer errors --- date/date.php | 3 +- ftp/ftp.php | 72 +++++-------------- http/http3.php | 20 +++--- intl/intl.php | 12 +--- ldap/ldap.php | 2 +- pq/pq.php | 18 ++--- relay/Relay.php | 12 ++-- relay/Sentinel.php | 3 +- .../ReflectionClassesTestDataProviders.php | 6 +- yaf/yaf_namespace.php | 36 +++++----- 10 files changed, 68 insertions(+), 116 deletions(-) diff --git a/date/date.php b/date/date.php index b72ce4452..c43980147 100644 --- a/date/date.php +++ b/date/date.php @@ -470,8 +470,7 @@ function mktime( ?int $month = null, ?int $day = null, ?int $year = null, - #[Deprecated('Use the new timezone handling functions instead', since: '5.3')] - #[PhpStormStubsElementAvailable(from: '5.5', to: '5.6')] $is_dst = -1 + #[Deprecated('Use the new timezone handling functions instead', since: '5.3')] #[PhpStormStubsElementAvailable(from: '5.5', to: '5.6')] int $is_dst = -1 ): int|false {} /** diff --git a/ftp/ftp.php b/ftp/ftp.php index ee50cbc4c..12f267064 100644 --- a/ftp/ftp.php +++ b/ftp/ftp.php @@ -18,12 +18,8 @@ function ftp_append( #[LanguageLevelTypeAware(['8.1' => 'FTP\Connection'], default: 'resource')] $ftp, string $remote_filename, string $local_filename, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] - int $mode, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '7.3')] - int $mode = FTP_BINARY + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $mode, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '7.3')] int $mode = FTP_BINARY ): bool {} /** @@ -306,12 +302,8 @@ function ftp_get( #[LanguageLevelTypeAware(['8.1' => 'FTP\Connection'], default: 'resource')] $ftp, string $local_filename, string $remote_filename, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] - int $mode, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '7.3')] - int $mode = FTP_BINARY, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $mode, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '7.3')] int $mode = FTP_BINARY, int $offset = 0 ): bool {} @@ -339,12 +331,8 @@ function ftp_fget( #[LanguageLevelTypeAware(['8.1' => 'FTP\Connection'], default: 'resource')] $ftp, $stream, string $remote_filename, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] - int $mode, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '7.3')] - int $mode = FTP_BINARY, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $mode, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '7.3')] int $mode = FTP_BINARY, int $offset = 0 ): bool {} @@ -370,12 +358,8 @@ function ftp_put( #[LanguageLevelTypeAware(['8.1' => 'FTP\Connection'], default: 'resource')] $ftp, string $remote_filename, string $local_filename, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] - int $mode, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '7.3')] - int $mode = FTP_BINARY, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $mode, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '7.3')] int $mode = FTP_BINARY, int $offset = 0 ): bool {} @@ -401,12 +385,8 @@ function ftp_fput( #[LanguageLevelTypeAware(['8.1' => 'FTP\Connection'], default: 'resource')] $ftp, string $remote_filename, $stream, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] - int $mode, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '7.3')] - int $mode = FTP_BINARY, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $mode, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '7.3')] int $mode = FTP_BINARY, int $offset = 0 ): bool {} @@ -584,12 +564,8 @@ function ftp_nb_fget( #[LanguageLevelTypeAware(['8.1' => 'FTP\Connection'], default: 'resource')] $ftp, $stream, string $remote_filename, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] - int $mode, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '7.3')] - int $mode = FTP_BINARY, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $mode, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '7.3')] int $mode = FTP_BINARY, int $offset = 0 ): int {} @@ -618,12 +594,8 @@ function ftp_nb_get( #[LanguageLevelTypeAware(['8.1' => 'FTP\Connection'], default: 'resource')] $ftp, string $local_filename, string $remote_filename, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] - int $mode, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '7.3')] - int $mode = FTP_BINARY, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $mode, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '7.3')] int $mode = FTP_BINARY, int $offset = 0 ) {} @@ -663,12 +635,8 @@ function ftp_nb_put( #[LanguageLevelTypeAware(['8.1' => 'FTP\Connection'], default: 'resource')] $ftp, string $remote_filename, string $local_filename, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] - int $mode, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '7.3')] - int $mode = FTP_BINARY, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $mode, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '7.3')] int $mode = FTP_BINARY, int $offset = 0 ): int|false {} @@ -696,12 +664,8 @@ function ftp_nb_fput( #[LanguageLevelTypeAware(['8.1' => 'FTP\Connection'], default: 'resource')] $ftp, string $remote_filename, $stream, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] - int $mode, - #[EV([FTP_ASCII, FTP_BINARY])] - #[PhpStormStubsElementAvailable(from: '7.3')] - int $mode = FTP_BINARY, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '5.3', to: '7.2')] int $mode, + #[EV([FTP_ASCII, FTP_BINARY])] #[PhpStormStubsElementAvailable(from: '7.3')] int $mode = FTP_BINARY, int $offset = 0 ): int {} diff --git a/http/http3.php b/http/http3.php index 54db34d72..1951e1b4c 100644 --- a/http/http3.php +++ b/http/http3.php @@ -156,7 +156,7 @@ public function count() {} * @throws \http\Exception\RuntimeException * @return \http\Client self. */ - public function dequeue(http\Client\Request $request) {} + public function dequeue(Client\Request $request) {} /** * Implements SplSubject. Detach $observer, which has been previously attached. @@ -214,7 +214,7 @@ public function enablePipelining(bool $enable = true) {} * @throws \http\Exception\RuntimeException * @return \http\Client self. */ - public function enqueue(http\Client\Request $request, callable $cb = null) {} + public function enqueue(Client\Request $request, callable $cb = null) {} /** * Get a list of available configuration options and their default values. @@ -288,7 +288,7 @@ public function getOptions() {} * @return object|null object stdClass instance holding progress information. * or NULL if $request is not enqueued. */ - public function getProgressInfo(http\Client\Request $request) {} + public function getProgressInfo(Client\Request $request) {} /** * Retrieve the corresponding response of an already finished request, or the last received response if $request is not set. @@ -302,7 +302,7 @@ public function getProgressInfo(http\Client\Request $request) {} * @return \http\Client\Response|null \http\Client\Response the stored response for the request, or the last that was received. * or NULL if no more response was available to pop, when no $request was given. */ - public function getResponse(http\Client\Request $request = null) {} + public function getResponse(Client\Request $request = null) {} /** * Retrieve priorly set SSL options. @@ -320,7 +320,7 @@ public function getSslOptions() {} * @throws \http\Exception\UnexpectedValueException * @return object stdClass instance holding transfer related information. */ - public function getTransferInfo(http\Client\Request $request) {} + public function getTransferInfo(Client\Request $request) {} /** * Implements SplSubject. Notify attached observers about progress with $request. @@ -331,7 +331,7 @@ public function getTransferInfo(http\Client\Request $request) {} * @throws \http\Exception\UnexpectedValueException * @return \http\Client self. */ - public function notify(http\Client\Request $request = null, $progress = null) {} + public function notify(Client\Request $request = null, $progress = null) {} /** * Perform outstanding transfer actions. @@ -353,7 +353,7 @@ public function once() {} * @throws \http\Exception\RuntimeException * @return \http\Client self. */ - public function requeue(http\Client\Request $request, callable $cb = null) {} + public function requeue(Client\Request $request, callable $cb = null) {} /** * Reset the client to the initial state. @@ -1106,7 +1106,7 @@ public function __toString() {} * @param \http\Message\Body $body The message body to add. * @return \http\Message self. */ - public function addBody(http\Message\Body $body) {} + public function addBody(Message\Body $body) {} /** * Add an header, appending to already existing headers. @@ -1294,7 +1294,7 @@ public function next() {} * @throws \http\Exception\UnexpectedValueException * @return \http\Message self. */ - public function prepend(http\Message $message, bool $top = true) {} + public function prepend(Message $message, bool $top = true) {} /** * Reverse the message chain and return the former top-most message. @@ -1330,7 +1330,7 @@ public function serialize() {} * @throws \http\Exception\UnexpectedValueException * @return \http\Message self. */ - public function setBody(http\Message\Body $body) {} + public function setBody(Message\Body $body) {} /** * Set a single header. diff --git a/intl/intl.php b/intl/intl.php index 478c2f451..bcf8dbe51 100644 --- a/intl/intl.php +++ b/intl/intl.php @@ -434,9 +434,7 @@ public function getErrorCode(): int|false {} #[Pure] #[TentativeType] public function getLocale( - #[LanguageAware(['8.0' => 'int'], default: '')] - #[EV([Locale::VALID_LOCALE, Locale::ACTUAL_LOCALE])] - $type + #[LanguageAware(['8.0' => 'int'], default: '')] #[EV([Locale::VALID_LOCALE, Locale::ACTUAL_LOCALE])] $type ): string|false {} /** @@ -2126,9 +2124,7 @@ public function getPattern(): string|false {} #[Pure] #[TentativeType] public function getLocale( - #[ElementAvailable(from: '8.0')] - #[LanguageAware(['8.0' => 'int'], default: '')] - $type = 0 + #[ElementAvailable(from: '8.0')] #[LanguageAware(['8.0' => 'int'], default: '')] $type = 0 ): string|false {} /** @@ -7249,9 +7245,7 @@ public function getLocale(#[LanguageAware(['8.0' => 'int'], default: '')] $type) #[Pure] #[TentativeType] public function getPartsIterator( - #[LanguageAware(['8.3' => 'string', '8.0' => 'int'], default: '')] - #[EV([IntlPartsIterator::KEY_SEQUENTIAL, IntlPartsIterator::KEY_LEFT, IntlPartsIterator::KEY_RIGHT])] - $type = IntlPartsIterator::KEY_SEQUENTIAL + #[LanguageAware(['8.3' => 'string', '8.0' => 'int'], default: '')] #[EV([IntlPartsIterator::KEY_SEQUENTIAL, IntlPartsIterator::KEY_LEFT, IntlPartsIterator::KEY_RIGHT])] $type = IntlPartsIterator::KEY_SEQUENTIAL ): IntlPartsIterator {} /** diff --git a/ldap/ldap.php b/ldap/ldap.php index 2d7eb4810..8e0a5b82d 100644 --- a/ldap/ldap.php +++ b/ldap/ldap.php @@ -1425,7 +1425,7 @@ function ldap_count_references( /** * @since 8.3 */ -function ldap_exop_sync(LDAP\Connection $ldap, string $request_oid, ?string $request_data = null, ?array $controls = null, &$response_data = null, &$response_oid = null): LDAP\Result|bool {} +function ldap_exop_sync(LDAP\Connection $ldap, string $request_oid, ?string $request_data = null, ?array $controls = null, &$response_data = null, &$response_oid = null): Result|bool {} define('LDAP_ESCAPE_FILTER', 1); define('LDAP_ESCAPE_DN', 2); diff --git a/pq/pq.php b/pq/pq.php index 774c89a21..4336821a2 100644 --- a/pq/pq.php +++ b/pq/pq.php @@ -76,7 +76,7 @@ class COPY * @throws \pq\Exception\BadMethodCallException * @throws \pq\Exception\RuntimeException */ - public function __construct(pq\Connection $conn, string $expression, int $direction, string $options = null) {} + public function __construct(Connection $conn, string $expression, int $direction, string $options = null) {} /** * End the COPY operation to the server during pq\Result::COPY_IN state. @@ -131,7 +131,7 @@ class Cancel * @throws \pq\Exception\BadMethodCallException * @throws \pq\Exception\RuntimeException */ - public function __construct(pq\Connection $conn) {} + public function __construct(Connection $conn) {} /** * Perform the cancellation request. @@ -741,7 +741,7 @@ public function resetAsync() {} * @throws \pq\Exception\InvalidArgumentException * @throws \pq\Exception\BadMethodCallException */ - public function setConverter(pq\Converter $converter) {} + public function setConverter(Converter $converter) {} /** * Begin a transaction. @@ -837,7 +837,7 @@ public function unlistenAsync(string $channel) {} * @throws \pq\Exception\InvalidArgumentException * @throws \pq\Exception\BadMethodCallException */ - public function unsetConverter(pq\Converter $converter) {} + public function unsetConverter(Converter $converter) {} } /** * Interface for type conversions. @@ -933,7 +933,7 @@ class Cursor * @throws \pq\Exception\BadMethodCallException * @throws \pq\Exception\RuntimeException */ - public function __construct(pq\Connection $connection, string $name, int $flags, string $query, bool $async) {} + public function __construct(Connection $connection, string $name, int $flags, string $query, bool $async) {} /** * Close an open cursor. @@ -1170,7 +1170,7 @@ class LOB * @throws \pq\Exception\BadMethodCallException * @throws \pq\Exception\RuntimeException */ - public function __construct(pq\Transaction $txn, int $oid = \pq\LOB::INVALID_OID, int $mode = \pq\LOB::RW) {} + public function __construct(Transaction $txn, int $oid = \pq\LOB::INVALID_OID, int $mode = \pq\LOB::RW) {} /** * Read a string of data from the current position of the *large object*. @@ -1577,7 +1577,7 @@ class Statement * @throws \pq\Exception\RuntimeException * @throws \pq\Exception\DomainException */ - public function __construct(pq\Connection $conn, string $name, string $query, array $types = null, bool $async = false) {} + public function __construct(Connection $conn, string $name, string $query, array $types = null, bool $async = false) {} /** * Bind a variable to an input parameter. @@ -1744,7 +1744,7 @@ class Transaction * @throws \pq\Exception\BadMethodCallException * @throws \pq\Exception\RuntimeException */ - public function __construct(pq\Connection $conn, bool $async = false, int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {} + public function __construct(Connection $conn, bool $async = false, int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {} /** * Commit the transaction or release the previous savepoint. @@ -2706,7 +2706,7 @@ class Types implements \ArrayAccess * @throws \pq\Exception\BadMethodCallException * @throws \pq\Exception\RuntimeException */ - public function __construct(pq\Connection $conn, array $namespaces = null) {} + public function __construct(Connection $conn, array $namespaces = null) {} /** * Refresh type information from `pg_type`. diff --git a/relay/Relay.php b/relay/Relay.php index 8962353bb..c7e3615d0 100644 --- a/relay/Relay.php +++ b/relay/Relay.php @@ -419,8 +419,7 @@ public function __construct( int $port = 6379, float $connect_timeout = 0.0, float $command_timeout = 0.0, - #[\SensitiveParameter] - array $context = [], + #[\SensitiveParameter] array $context = [], int $database = 0, ) {} @@ -446,8 +445,7 @@ public function connect( ?string $persistent_id = null, int $retry_interval = 0, float $read_timeout = 0.0, - #[\SensitiveParameter] - array $context = [], + #[\SensitiveParameter] array $context = [], int $database = 0 ): bool {} @@ -472,8 +470,7 @@ public function pconnect( ?string $persistent_id = null, int $retry_interval = 0, float $read_timeout = 0.0, - #[\SensitiveParameter] - array $context = [], + #[\SensitiveParameter] array $context = [], int $database = 0 ): bool {} @@ -1019,8 +1016,7 @@ public function migrate( int $timeout, bool $copy = false, bool $replace = false, - #[\SensitiveParameter] - mixed $credentials = null + #[\SensitiveParameter] mixed $credentials = null ): Relay|bool {} /** diff --git a/relay/Sentinel.php b/relay/Sentinel.php index fdd99a00d..de3d00f1d 100644 --- a/relay/Sentinel.php +++ b/relay/Sentinel.php @@ -46,8 +46,7 @@ public function __construct( mixed $persistent = null, int $retry_interval = 0, float $read_timeout = 0, - #[\SensitiveParameter] - mixed $auth = null + #[\SensitiveParameter] mixed $auth = null ) {} /** diff --git a/tests/TestData/Providers/Reflection/ReflectionClassesTestDataProviders.php b/tests/TestData/Providers/Reflection/ReflectionClassesTestDataProviders.php index 33bf18fdd..4f949a3a7 100644 --- a/tests/TestData/Providers/Reflection/ReflectionClassesTestDataProviders.php +++ b/tests/TestData/Providers/Reflection/ReflectionClassesTestDataProviders.php @@ -27,7 +27,7 @@ public static function classesWithInterfacesProvider(): ?Generator { foreach (EntitiesFilter::getFiltered( ReflectionStubsSingleton::getReflectionStubs()->getClasses(), - fn(PHPClass $class) => empty($class->interfaces), + fn (PHPClass $class) => empty($class->interfaces), StubProblemType::WRONG_INTERFACE ) as $class) { //exclude classes from PHPReflectionParser @@ -43,7 +43,7 @@ public static function classWithParentProvider(): ?Generator ReflectionStubsSingleton::getReflectionStubs()->getInterfaces(); $filtered = EntitiesFilter::getFiltered( $classesAndInterfaces, - fn($class) => empty($class->parentInterfaces) && empty($class->parentClass), + fn ($class) => empty($class->parentInterfaces) && empty($class->parentClass), StubProblemType::WRONG_PARENT ); foreach ($filtered as $class) { @@ -70,7 +70,7 @@ public static function readonlyClassesProvider(): ?Generator $classes = ReflectionStubsSingleton::getReflectionStubs()->getClasses(); $filtered = EntitiesFilter::getFiltered( $classes, - fn(PhpClass $class) => $class->isReadonly === false, + fn (PhpClass $class) => $class->isReadonly === false, StubProblemType::WRONG_READONLY ); if (empty($filtered)) { diff --git a/yaf/yaf_namespace.php b/yaf/yaf_namespace.php index 9469c902e..c28dda69e 100644 --- a/yaf/yaf_namespace.php +++ b/yaf/yaf_namespace.php @@ -167,7 +167,7 @@ public function environ() {} * @param \Yaf\Bootstrap_Abstract $bootstrap A \Yaf\Bootstrap_Abstract instance * @return \Yaf\Application */ - public function bootstrap(Yaf\Bootstrap_Abstract $bootstrap = null) {} + public function bootstrap(Bootstrap_Abstract $bootstrap = null) {} /** * @link https://secure.php.net/manual/en/yaf-application.getconfig.php @@ -374,7 +374,7 @@ public function initView($templates_dir, array $options = null) {} * @param \Yaf\View_Interface $view A \Yaf\View_Interface instance * @return \Yaf\Dispatcher */ - public function setView(Yaf\View_Interface $view) {} + public function setView(View_Interface $view) {} /** * @link https://secure.php.net/manual/en/yaf-dispatcher.setrequest.php @@ -382,7 +382,7 @@ public function setView(Yaf\View_Interface $view) {} * @param \Yaf\Request_Abstract $request * @return \Yaf\Dispatcher */ - public function setRequest(Yaf\Request_Abstract $request) {} + public function setRequest(Request_Abstract $request) {} /** * Retrieve the \Yaf\Application instance. same as \Yaf\Application::app(). @@ -509,7 +509,7 @@ public static function getInstance() {} * * @return \Yaf\Response_Abstract */ - public function dispatch(Yaf\Request_Abstract $request) {} + public function dispatch(Request_Abstract $request) {} /** *

Switch on/off exception throwing while unexpected error occurring. When this is on, Yaf will throwing exceptions instead of triggering catchable errors.


@@ -541,7 +541,7 @@ public function catchException($flag = null) {} * @param \Yaf\Plugin_Abstract $plugin * @return \Yaf\Dispatcher */ - public function registerPlugin(Yaf\Plugin_Abstract $plugin) {} + public function registerPlugin(Plugin_Abstract $plugin) {} }/** *

\Yaf\Loader introduces a comprehensive autoloading solution for Yaf.

*
@@ -951,7 +951,7 @@ public function __construct() {} * * @return \Yaf\Router|false return FALSE on failure */ - public function addRoute($name, Yaf\Route_Interface $route) {} + public function addRoute($name, Route_Interface $route) {} /** *

Add routes defined by configs into \Yaf\Router's route stack

@@ -962,7 +962,7 @@ public function addRoute($name, Yaf\Route_Interface $route) {} * * @return \Yaf\Router|false return FALSE on failure */ - public function addConfig(Yaf\Config_Abstract $config) {} + public function addConfig(Config_Abstract $config) {} /** * @link https://secure.php.net/manual/en/yaf-router.route.php @@ -971,7 +971,7 @@ public function addConfig(Yaf\Config_Abstract $config) {} * * @return \Yaf\Router|false return FALSE on failure */ - public function route(Yaf\Request_Abstract $request) {} + public function route(Request_Abstract $request) {} /** *

Retrieve a route by name, see also \Yaf\Router::getCurrentRoute()

@@ -1211,7 +1211,7 @@ public function init() {} * @param \Yaf\View_Interface $view * @param array $invokeArgs */ - final public function __construct(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response, Yaf\View_Interface $view, array $invokeArgs = null) {} + final public function __construct(Request_Abstract $request, Response_Abstract $response, View_Interface $view, array $invokeArgs = null) {} /** * @link https://secure.php.net/manual/en/yaf-controller-abstract.clone.php @@ -1615,7 +1615,7 @@ abstract class Plugin_Abstract * * @return bool true */ - public function routerStartup(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} + public function routerStartup(Request_Abstract $request, Response_Abstract $response) {} /** * This hook will be trigged after the route process finished, this hook is usually used for login check. @@ -1627,7 +1627,7 @@ public function routerStartup(Yaf\Request_Abstract $request, Yaf\Response_Abstra * * @return bool true */ - public function routerShutdown(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} + public function routerShutdown(Request_Abstract $request, Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.dispatchloopstartup.php @@ -1637,7 +1637,7 @@ public function routerShutdown(Yaf\Request_Abstract $request, Yaf\Response_Abstr * * @return bool true */ - public function dispatchLoopStartup(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} + public function dispatchLoopStartup(Request_Abstract $request, Response_Abstract $response) {} /** * This is the latest hook in Yaf plugin hook system, if a custom plugin implement this method, then it will be called after the dispatch loop finished. @@ -1649,7 +1649,7 @@ public function dispatchLoopStartup(Yaf\Request_Abstract $request, Yaf\Response_ * * @return bool true */ - public function dispatchLoopShutdown(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} + public function dispatchLoopShutdown(Request_Abstract $request, Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.predispatch.php @@ -1659,7 +1659,7 @@ public function dispatchLoopShutdown(Yaf\Request_Abstract $request, Yaf\Response * * @return bool true */ - public function preDispatch(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} + public function preDispatch(Request_Abstract $request, Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.postdispatch.php @@ -1669,7 +1669,7 @@ public function preDispatch(Yaf\Request_Abstract $request, Yaf\Response_Abstract * * @return bool true */ - public function postDispatch(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} + public function postDispatch(Request_Abstract $request, Response_Abstract $response) {} /** * @link https://secure.php.net/manual/en/yaf-plugin-abstract.preresponse.php @@ -1679,7 +1679,7 @@ public function postDispatch(Yaf\Request_Abstract $request, Yaf\Response_Abstrac * * @return bool true */ - public function preResponse(Yaf\Request_Abstract $request, Yaf\Response_Abstract $response) {} + public function preResponse(Request_Abstract $request, Response_Abstract $response) {} }/** * @link https://secure.php.net/manual/en/class.yaf-response-abstract.php */ @@ -1867,7 +1867,7 @@ interface Route_Interface * @param \Yaf\Request_Abstract $request * @return bool */ - public function route(Yaf\Request_Abstract $request); + public function route(Request_Abstract $request); /** *

\Yaf\Route_Interface::assemble() - assemble a request


@@ -1913,7 +1913,7 @@ public function match($uri) {} * * @return bool always TRUE */ - public function route(Yaf\Request_Abstract $request) {} + public function route(Request_Abstract $request) {} /** *

\Yaf\Route_Static::assemble() - Assemble a url