We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b2382 commit ce70b62Copy full SHA for ce70b62
src/SslCertificate.php
@@ -170,7 +170,7 @@ public function isExpired(): bool
170
return $this->expirationDate()->isPast();
171
}
172
173
- public function isValid(string $url = null): bool
+ public function isValid(?string $url = null): bool
174
{
175
if (! Carbon::now()->between($this->validFromDate(), $this->expirationDate())) {
176
return false;
@@ -203,7 +203,7 @@ public function usesSha1Hash(): bool
203
204
205
206
- public function isValidUntil(Carbon $carbon, string $url = null): bool
+ public function isValidUntil(Carbon $carbon, ?string $url = null): bool
207
208
if ($this->expirationDate()->lte($carbon)) {
209
0 commit comments