@@ -37,7 +37,7 @@ public function filter(Closure $callback): self
3737        return  $ this  ;
3838    }
3939
40-     public  function  get (string  $ attribute  = null )
40+     public  function  get (? string  $ attribute  = null )
4141    {
4242        $ node  = $ this  ->node ();
4343
@@ -48,7 +48,7 @@ public function get(string $attribute = null)
4848        return  $ attribute  ? self ::getAttribute ($ node , $ attribute ) : $ node ->nodeValue ;
4949    }
5050
51-     public  function  getAll (string  $ attribute  = null ): array 
51+     public  function  getAll (? string  $ attribute  = null ): array 
5252    {
5353        $ nodes  = $ this  ->nodes ();
5454
@@ -60,26 +60,26 @@ public function getAll(string $attribute = null): array
6060        );
6161    }
6262
63-     public  function  str (string  $ attribute  = null ): ?string 
63+     public  function  str (? string  $ attribute  = null ): ?string 
6464    {
6565        $ value  = $ this  ->get ($ attribute );
6666
6767        return  $ value  ? clean ($ value ) : null ;
6868    }
6969
70-     public  function  strAll (string  $ attribute  = null ): array 
70+     public  function  strAll (? string  $ attribute  = null ): array 
7171    {
7272        return  array_filter (array_map (fn  ($ value ) => clean ($ value ), $ this  ->getAll ($ attribute )));
7373    }
7474
75-     public  function  int (string  $ attribute  = null ): ?int 
75+     public  function  int (? string  $ attribute  = null ): ?int 
7676    {
7777        $ value  = $ this  ->get ($ attribute );
7878
7979        return  $ value  ? (int ) $ value  : null ;
8080    }
8181
82-     public  function  url (string  $ attribute  = null ): ?UriInterface 
82+     public  function  url (? string  $ attribute  = null ): ?UriInterface 
8383    {
8484        $ value  = $ this  ->get ($ attribute );
8585
0 commit comments