Data manipulation #22
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Research
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No project
No assignees
1 participant
Notifications
Total time spent: 15 minutes
Due date
c.fahner
15 minutes
No due date set.
Dependencies
No dependencies set
Reference
slendium/ocd!22
Loading…
Reference in a new issue
No description provided.
Delete branch "issues/3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves #3.
Adds MutableDocument.
Adds Update (+ implementations), Update\Visitor, Update\DocumentUpdate (query builder)
@ -0,0 +43,4 @@#[Override]public function offsetSet(mixed $offset, mixed $value): void {if ($offset === null) {throw new LogicException('Expected offset to be a non-empty string');Message should say appending is not possible
@ -0,0 +13,4 @@* @author C. Fahner* @copyright Slendium 2026*/final class MutableDocumentTest extends TestCase {Add test to ensure appending throws
@ -0,0 +21,4 @@public FieldPath $field,/** @since 1.0 */public float|int $amount = 1,Should not have a default value
@ -0,0 +21,4 @@public FieldPath $field,/** @since 1.0 */public float|int $amount = 1,Should not have a default value. Besides, a default value of 1 for multiplication does not make sense since it's a no-op.
@ -0,0 +90,4 @@$result = \count($sut);$iterations = 0;foreach ($sut as $_) {Add an assertion that checks if the key exists in
$values.@ -0,0 +16,4 @@*/final class VisitorTest extends TestCase {public function test_interface_shouldCoverAllExprs(): void {_shouldCoverAllStmts@ -0,0 +29,4 @@foreach ($method->getParameters() as $i => $parameter) {$type = $parameter->getType();$this->assertInstanceOf(ReflectionNamedType::class, $type);$this->assertTrue(isset($variants[$type->getName()]), "Visitor interface contains method for non-existant expression $type");"expression"→"statement"