Skip to content

Commit 7b57b5e

Browse files
committed
Remove superflous stubs
1 parent 8a361cf commit 7b57b5e

File tree

4 files changed

+6
-51
lines changed

4 files changed

+6
-51
lines changed

extension.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ parameters:
130130
websiteTitle: string
131131
stubFiles:
132132
- stubs/DomainObjectInterface.stub
133-
- stubs/ObjectMonitoringInterface.stub
134133
- stubs/ObjectStorage.stub
135134
- stubs/QueryInterface.stub
136135
- stubs/QueryResultInterface.stub

stubs/ObjectMonitoringInterface.stub

Lines changed: 0 additions & 4 deletions
This file was deleted.

stubs/ObjectStorage.stub

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -9,55 +9,9 @@ namespace TYPO3\CMS\Extbase\Persistence;
99
*/
1010
class ObjectStorage implements \Iterator, \ArrayAccess
1111
{
12-
/**
13-
* @var array<string, ObjectStorageInternal>
14-
*/
15-
protected $storage;
16-
17-
/**
18-
* @param TEntity|string|null $value
19-
* @param mixed $information
20-
*/
21-
public function offsetSet($value, $information);
22-
23-
/**
24-
* @param TEntity|int|string $value
25-
* @return bool
26-
*/
27-
public function offsetExists($value);
28-
29-
/**
30-
* @param TEntity|int|string $value
31-
*/
32-
public function offsetUnset($value);
33-
3412
/**
3513
* @param TEntity|int|string $value
3614
* @return ($value is int ? TEntity|null : mixed)
3715
*/
3816
public function offsetGet($value);
39-
40-
/**
41-
* This is different from the SplObjectStorage as the key in this implementation is the object hash (string).
42-
* @phpstan-ignore-next-line See https://forge.typo3.org/issues/98146
43-
* @return string
44-
*/
45-
// @phpstan-ignore-next-line See https://forge.typo3.org/issues/98146
46-
public function key();
47-
48-
/**
49-
* @return list<TEntity>
50-
*/
51-
public function toArray();
52-
53-
/**
54-
* @return list<TEntity>
55-
*/
56-
public function getArray();
57-
58-
/**
59-
* @param TEntity $object
60-
* @return bool
61-
*/
62-
public function isRelationDirty($object);
6317
}

tests/Unit/Type/MathUtilityTypeSpecifyingExtension/data/MathUtilityType.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ public function forceIntegerInRangeWithMinAndMaxValueDefined(int $theInt): void
1515
assertType('int<0, 100>', $forceIntegerInRange);
1616
}
1717

18+
public function forceIntegerInRangeWithFloatAndWithMinAndMaxValueDefined(float $theFloat): void
19+
{
20+
$theFloat = MathUtility::forceIntegerInRange($theFloat, 1, 100);
21+
assertType('int<1, 100>', $theFloat);
22+
}
23+
1824
public function forceIntegerInRangeWithoutMaxValueSpecified(int $theInt): void
1925
{
2026
$forceIntegerInRange = MathUtility::forceIntegerInRange($theInt, 0);

0 commit comments

Comments
 (0)