Skip to content

Commit 3ba9fcc

Browse files
committed
Removing magic getter method from AbstractWebApplication
1 parent 896ee4c commit 3ba9fcc

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

src/AbstractWebApplication.php

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -213,46 +213,6 @@ public function __construct(
213213
$this->loadSystemUris();
214214
}
215215

216-
/**
217-
* Magic method to access properties of the application.
218-
*
219-
* @param string $name The name of the property.
220-
*
221-
* @return Input|null A value if the property name is valid, null otherwise.
222-
*
223-
* @since 2.0.0
224-
* @deprecated 3.0 This is a B/C proxy for deprecated read accesses
225-
*/
226-
public function __get($name)
227-
{
228-
switch ($name) {
229-
case 'input':
230-
\trigger_deprecation(
231-
'joomla/application',
232-
'2.0.0',
233-
'Accessing the input property of %s is deprecated, use the %s::getInput() method instead.',
234-
self::class,
235-
self::class
236-
);
237-
238-
return $this->getInput();
239-
240-
default:
241-
$trace = \debug_backtrace();
242-
\trigger_error(
243-
\sprintf(
244-
'Undefined property via __get(): %1$s in %2$s on line %3$s',
245-
$name,
246-
$trace[0]['file'],
247-
$trace[0]['line']
248-
),
249-
E_USER_NOTICE
250-
);
251-
252-
return null;
253-
}
254-
}
255-
256216
/**
257217
* Execute the application.
258218
*
@@ -478,20 +438,6 @@ public function redirect($url, $status = 303)
478438

479439
echo $html;
480440
} else {
481-
// Check if we have a boolean for the status variable for compatibility with v1 of the framework
482-
// @deprecated 3.0
483-
if (\is_bool($status)) {
484-
\trigger_deprecation(
485-
'joomla/application',
486-
'2.0.0',
487-
'Passing a boolean value for the $status argument in %s() is deprecated,'
488-
. ' an integer should be passed instead.',
489-
__METHOD__
490-
);
491-
492-
$status = $status ? 301 : 303;
493-
}
494-
495441
if (!\is_int($status) && !$this->isRedirectState($status)) {
496442
throw new \InvalidArgumentException('You have not supplied a valid HTTP status code');
497443
}

0 commit comments

Comments
 (0)