Skip to content

Commit 019edb0

Browse files
szepeviktorshish
authored andcommitted
Fix typos
1 parent 1b99e64 commit 019edb0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

generator/src/PhpStanFunctions/PhpStanType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function getSignatureType(?ErrorType $errorType = null): string
165165
$nullable = $errorType === ErrorType::NULLSY ? false : $this->nullable;
166166
$falsable = $errorType === ErrorType::FALSY ? false : $this->falsable;
167167
$types = $this->types;
168-
//no typehint exists for thoses cases
168+
//no typehint exists for those cases
169169
if (\array_intersect(self::NO_SIGNATURE_TYPES, $types) !== []) {
170170
return '';
171171
}

lib/DateTimeImmutable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function createFromRegular(\DateTimeImmutable $datetime): self
3636
return $safeDatetime;
3737
}
3838

39-
//usefull if you need to switch back to regular DateTimeImmutable (for example when using DatePeriod)
39+
//useful if you need to switch back to regular DateTimeImmutable (for example when using DatePeriod)
4040
public function getInnerDateTime(): \DateTimeImmutable
4141
{
4242
return $this->innerDateTime;

lib/special_cases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function json_decode(string $json, bool $associative = false, int $depth = 512,
4343
}
4444

4545
/**
46-
* Fetchs an entry from the cache.
46+
* Fetches an entry from the cache.
4747
*
4848
* @param string|string[] $key The key used to store the value (with
4949
* apcu_store). If an array is passed then each

tests/DateTimeImmutableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function testSerialize(): void
169169
$this->assertEquals($safeDatetime->getTimezone(), $newDatetime->getTimezone());
170170
}
171171

172-
public function testComparaison(): void
172+
public function testComparison(): void
173173
{
174174
$safeDateTime = new \Safe\DateTimeImmutable();
175175
$phpDateTime = new \DateTimeImmutable();

0 commit comments

Comments
 (0)