Skip to content

Commit

Permalink
Use nullable type for Calculator::set()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Jul 21, 2018
1 parent 096df6e commit 726a8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/Calculator.php
Expand Up @@ -46,7 +46,7 @@ abstract class Calculator
*
* @return void
*/
public static function set(Calculator $calculator = null) : void
public static function set(?Calculator $calculator) : void
{
self::$instance = $calculator;
}
Expand Down

0 comments on commit 726a8f2

Please sign in to comment.