File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 4545 },
4646 "require-dev" : {
4747 "ext-xdebug" : " *" ,
48- "aplus/coding-standard" : " ^2.1 " ,
48+ "aplus/coding-standard" : " ^2.8 " ,
4949 "ergebnis/composer-normalize" : " ^2.25" ,
5050 "jetbrains/phpstorm-attributes" : " ^1.0" ,
5151 "phpmd/phpmd" : " ^2.13" ,
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ class ExceptionHandler
5252 */
5353 public function __construct (
5454 string $ environment = ExceptionHandler::PRODUCTION ,
55- Logger $ logger = null ,
56- Language $ language = null
55+ ? Logger $ logger = null ,
56+ ? Language $ language = null
5757 ) {
5858 $ this ->setEnvironment ($ environment );
5959 if ($ logger ) {
@@ -89,7 +89,7 @@ public function getLogger() : ?Logger
8989 return $ this ->logger ;
9090 }
9191
92- public function setLanguage (Language $ language = null ) : static
92+ public function setLanguage (? Language $ language = null ) : static
9393 {
9494 $ this ->language = $ language ?? new Language ();
9595 $ this ->language ->addDirectory (__DIR__ . '/Languages ' );
@@ -268,8 +268,8 @@ protected function log(string $message) : void
268268 public function errorHandler (
269269 int $ errno ,
270270 string $ errstr ,
271- string $ errfile = null ,
272- int $ errline = null
271+ ? string $ errfile = null ,
272+ ? int $ errline = null
273273 ) : bool {
274274 if (!(\error_reporting () & $ errno )) {
275275 return true ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class SearchEngines
3232 ];
3333 protected string $ current = 'google ' ;
3434
35- public function __construct (string $ current = null )
35+ public function __construct (? string $ current = null )
3636 {
3737 if (isset ($ current )) {
3838 $ this ->setCurrent ($ current );
@@ -80,7 +80,7 @@ public function getCurrentUrl() : string
8080 return $ this ->getUrl ($ this ->getCurrent ());
8181 }
8282
83- public function makeLink (string $ query , string $ name = null ) : string
83+ public function makeLink (string $ query , ? string $ name = null ) : string
8484 {
8585 $ link = isset ($ name ) ? $ this ->getUrl ($ name ) : $ this ->getCurrentUrl ();
8686 return $ link . \urlencode ($ query );
You can’t perform that action at this time.
0 commit comments