Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function getKeyIndexes(): array
* @param string|null $key
* @return mixed
*/
public function getValue(string $key = null)
public function getValue(?string $key = null)
{
if ($key && $this->isArrayAttribute()) {
$key = $this->resolveSiblingKey($key);
Expand Down
4 changes: 2 additions & 2 deletions src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public static function snakeCase(string $value, string $delimiter = '_'): string
* @param string|null $lastSeparator
* @return string
*/
public static function join(array $pieces, string $separator, string $lastSeparator = null): string
public static function join(array $pieces, string $separator, ?string $lastSeparator = null): string
{
if (is_null($lastSeparator)) {
$lastSeparator = $separator;
Expand All @@ -245,7 +245,7 @@ public static function join(array $pieces, string $separator, string $lastSepara
* @param string|null $suffix
* @return array
*/
public static function wraps(array $strings, string $prefix, string $suffix = null): array
public static function wraps(array $strings, string $prefix, ?string $suffix = null): array
{
if (is_null($suffix)) {
$suffix = $prefix;
Expand Down