Skip to content

Commit 216f0b4

Browse files
Merge branch '4.4'
* 4.4: [4.4] Add return types on internal|final|private methods (bis) [Ldap] Add missing LdapUser::setPassword() Add types to roting and DI configuration traits.
2 parents 2444cb9 + d10964c commit 216f0b4

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Loader/Configurator/CollectionConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ final public function collection($name = ''): self
6060
*
6161
* @return $this
6262
*/
63-
final public function prefix($prefix): object
63+
final public function prefix($prefix): self
6464
{
6565
if (\is_array($prefix)) {
6666
if (null === $this->parentPrefixes) {

Loader/Configurator/ImportConfigurator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __destruct()
4141
*
4242
* @return $this
4343
*/
44-
final public function prefix($prefix, bool $trailingSlashOnRoot = true): object
44+
final public function prefix($prefix, bool $trailingSlashOnRoot = true): self
4545
{
4646
if (!\is_array($prefix)) {
4747
$this->route->addPrefix($prefix);
@@ -84,7 +84,7 @@ final public function prefix($prefix, bool $trailingSlashOnRoot = true): object
8484
*
8585
* @return $this
8686
*/
87-
final public function namePrefix(string $namePrefix): object
87+
final public function namePrefix(string $namePrefix): self
8888
{
8989
$this->route->addNamePrefix($namePrefix);
9090

Loader/Configurator/Traits/RouteTrait.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ trait RouteTrait
2626
*
2727
* @return $this
2828
*/
29-
final public function defaults(array $defaults): object
29+
final public function defaults(array $defaults): self
3030
{
3131
$this->route->addDefaults($defaults);
3232

@@ -38,7 +38,7 @@ final public function defaults(array $defaults): object
3838
*
3939
* @return $this
4040
*/
41-
final public function requirements(array $requirements): object
41+
final public function requirements(array $requirements): self
4242
{
4343
$this->route->addRequirements($requirements);
4444

@@ -50,7 +50,7 @@ final public function requirements(array $requirements): object
5050
*
5151
* @return $this
5252
*/
53-
final public function options(array $options): object
53+
final public function options(array $options): self
5454
{
5555
$this->route->addOptions($options);
5656

@@ -62,7 +62,7 @@ final public function options(array $options): object
6262
*
6363
* @return $this
6464
*/
65-
final public function utf8(bool $utf8 = true): object
65+
final public function utf8(bool $utf8 = true): self
6666
{
6767
$this->route->addOptions(['utf8' => $utf8]);
6868

@@ -74,7 +74,7 @@ final public function utf8(bool $utf8 = true): object
7474
*
7575
* @return $this
7676
*/
77-
final public function condition(string $condition): object
77+
final public function condition(string $condition): self
7878
{
7979
$this->route->setCondition($condition);
8080

@@ -86,7 +86,7 @@ final public function condition(string $condition): object
8686
*
8787
* @return $this
8888
*/
89-
final public function host(string $pattern): object
89+
final public function host(string $pattern): self
9090
{
9191
$this->route->setHost($pattern);
9292

@@ -101,7 +101,7 @@ final public function host(string $pattern): object
101101
*
102102
* @return $this
103103
*/
104-
final public function schemes(array $schemes): object
104+
final public function schemes(array $schemes): self
105105
{
106106
$this->route->setSchemes($schemes);
107107

@@ -116,7 +116,7 @@ final public function schemes(array $schemes): object
116116
*
117117
* @return $this
118118
*/
119-
final public function methods(array $methods): object
119+
final public function methods(array $methods): self
120120
{
121121
$this->route->setMethods($methods);
122122

@@ -130,7 +130,7 @@ final public function methods(array $methods): object
130130
*
131131
* @return $this
132132
*/
133-
final public function controller($controller): object
133+
final public function controller($controller): self
134134
{
135135
$this->route->addDefaults(['_controller' => $controller]);
136136

@@ -142,7 +142,7 @@ final public function controller($controller): object
142142
*
143143
* @return $this
144144
*/
145-
final public function locale(string $locale): object
145+
final public function locale(string $locale): self
146146
{
147147
$this->route->addDefaults(['_locale' => $locale]);
148148

@@ -154,7 +154,7 @@ final public function locale(string $locale): object
154154
*
155155
* @return $this
156156
*/
157-
final public function format(string $format): object
157+
final public function format(string $format): self
158158
{
159159
$this->route->addDefaults(['_format' => $format]);
160160

0 commit comments

Comments
 (0)