Skip to content
Merged
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
5 changes: 3 additions & 2 deletions src/Illuminate/Support/Stringable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1281,11 +1281,12 @@ public function toString()
/**
* Get the underlying string value as an integer.
*
* @param int $base
* @return int
*/
public function toInteger()
public function toInteger($base = 10)
{
return intval($this->value);
return intval($this->value, $base);
}

/**
Expand Down