Skip to content

phpspec 7#13

Draft
gnugat wants to merge 1 commit intomainfrom
release-v0-11
Draft

phpspec 7#13
gnugat wants to merge 1 commit intomainfrom
release-v0-11

Conversation

@gnugat
Copy link
Member

@gnugat gnugat commented Jan 27, 2026

Upgrading requirements to:

  • PHP 8.0
  • Memio 3.0

This will be tagged as version v0.11.0 (let's not forget the v prefix this time).

AI disclosure: used Claude Code (v2.1.20, Opus 4.5), to help with the Memio v3 upgrade.

_AI Disclosure_: used Claude Code (v2.1.20, Opus 4.5), to help with the
Memio v3 upgrade.

Prompts:

```
I'm trying to upgrade this lib to Memio v3, but running the tests fail:

  ```
  // Running phpspec...
  Memio/SpecGen/Marshaller/Service/TypeGuesser
    71  - it guesses phpspec doubles of implementations of many interfaces
        expected "Memio\SpecGen\Fixtures\Ty...", but got "Memio\SpecGen\Fixtures\Ty...".

  Memio/SpecGen/Marshaller/Service/TypeGuesser
    76  - it guesses phpspec doubles of implementations of deep interfaces
        expected "Memio\SpecGen\Fixtures\Ty...", but got "Memio\SpecGen\Fixtures\Ty...".
  ```

  You can run `make lib-qa` or `make phpspec` to check it yoursel
```

```
now phpstan complains:

  ```
   ------ ------------------------------------------------------------------
    Line   Memio/SpecGen/GenerateConstructor/GenerateConstructorHandler.php
   ------ ------------------------------------------------------------------
    57     Call to an undefined static method Memio\Model\Objekt::make().
    58     Call to an undefined static method Memio\Model\File::make().
   ------ ------------------------------------------------------------------

   ------ ----------------------------------------------------------------
    Line   Memio/SpecGen/GenerateMethod/GenerateMethodHandler.php
   ------ ----------------------------------------------------------------
    56     Call to an undefined static method Memio\Model\File::make().
    57     Call to an undefined static method Memio\Model\Objekt::make().
   ------ ----------------------------------------------------------------
  ```

  You can run `make phpstan` to check it
```

```
you can also check the UPGRADING or CHANGELOG in vendor/memio
```
@gnugat gnugat self-assigned this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant