Skip to content

Commit c894a3b

Browse files
committed
Merge pull request #166 from thephpleague/fix-mixed-null
Replace mixed|null with mixed in docblocks
2 parents 7e364f3 + 4b16eb7 commit c894a3b

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

src/Block/Element/AbstractBlock.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ public function setLastLineBlank(Cursor $cursor, $currentLineNumber)
318318
}
319319

320320
/**
321-
* @param string $key
322-
* @param mixed|null $default
321+
* @param string $key
322+
* @param mixed $default
323323
*
324-
* @return mixed|null
324+
* @return mixed
325325
*/
326326
public function getData($key, $default = null)
327327
{

src/ElementRendererInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
interface ElementRendererInterface
2424
{
2525
/**
26-
* @param string $option
27-
* @param mixed|null $default
26+
* @param string $option
27+
* @param mixed $default
2828
*
29-
* @return mixed|null
29+
* @return mixed
3030
*/
3131
public function getOption($option, $default = null);
3232

src/Environment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ public function setConfig(array $config = [])
109109

110110
/**
111111
* @param string|null $key
112-
* @param mixed|null $default
112+
* @param mixed $default
113113
*
114-
* @return mixed|null
114+
* @return mixed
115115
*/
116116
public function getConfig($key = null, $default = null)
117117
{

src/HtmlRenderer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public function __construct(Environment $environment)
3636
}
3737

3838
/**
39-
* @param string $option
40-
* @param mixed|null $default
39+
* @param string $option
40+
* @param mixed $default
4141
*
42-
* @return mixed|null
42+
* @return mixed
4343
*/
4444
public function getOption($option, $default = null)
4545
{

src/Inline/Element/AbstractInline.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ public function setParent($parent)
6161
}
6262

6363
/**
64-
* @param string $key
65-
* @param mixed|null $default
64+
* @param string $key
65+
* @param mixed $default
6666
*
67-
* @return mixed|null
67+
* @return mixed
6868
*/
6969
public function getData($key, $default = null)
7070
{

src/Util/ArrayCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function set($key, $value)
8383
/**
8484
* @param mixed $key
8585
*
86-
* @return mixed|null
86+
* @return mixed
8787
*/
8888
public function get($key)
8989
{
@@ -93,7 +93,7 @@ public function get($key)
9393
/**
9494
* @param mixed $key
9595
*
96-
* @return mixed|null
96+
* @return mixed
9797
*/
9898
public function remove($key)
9999
{
@@ -172,7 +172,7 @@ public function offsetExists($offset)
172172
*
173173
* @param mixed $offset The offset to retrieve.
174174
*
175-
* @return mixed|null
175+
* @return mixed
176176
*/
177177
public function offsetGet($offset)
178178
{

src/Util/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public function setConfig(array $config = [])
4444

4545
/**
4646
* @param string|null $key
47-
* @param mixed|null $default
47+
* @param mixed $default
4848
*
49-
* @return mixed|null
49+
* @return mixed
5050
*/
5151
public function getConfig($key = null, $default = null)
5252
{
@@ -70,7 +70,7 @@ public function getConfig($key = null, $default = null)
7070
* @param string $keyPath
7171
* @param string|null $default
7272
*
73-
* @return mixed|null
73+
* @return mixed
7474
*/
7575
protected function getConfigByPath($keyPath, $default = null)
7676
{

0 commit comments

Comments
 (0)