John Charman

Results 20 issues of John Charman

### What? - Extracts logic for normalizing class names before registering them with Dagger. - Adds tests for the extracted logic. ### Why? [sdk/php/src/Command/EntrypointCommand.php](https://github.com/dagger/dagger/compare/main...charjr:add-normalize-classname?expand=1#diff-9a9bae0159266493bd51c77501f9e9bfa8e1ef6d4ae998719e760c57cada1e58) is tied heavily to the dagger...

kind/refactor
area/sdk/php

### Issue When writing a docblock, if I type `@p` and then try to use completion I will get `@@param`. This applies to any annotation, if I simply type `@`...

The PHP SDK could use integration tests. With modules created, purely for testing, to assert PHP modules work when called through dagger. For reference: https://discord.com/channels/707636530424053791/1162025276872609832/1342504029829337158

area/sdk/php

The PHP SDK has functionality for a constructor merged, but no integration tests for it yet. These should be added: > I think it's also worth it to add some...

area/sdk/php

### What is the issue? When generating a module using the PHP SDK, the templates includes a [README.md](https://github.com/dagger/dagger/blob/main/sdk/php/runtime/template/README.md). The README does not make it immediately obvious that the function `fooBarBaz`...

area/documentation
area/sdk/php

Close #9784. Include a warning that PHP dagger modules should not be installed through composer.

### What Happens This works as expected: ```php #[DaggerObject] class MyModule { #[DaggerFunction] public function returnSelf(): MyModule { return $this; } } ``` However, this fails: ```php #[DaggerObject] class MyModule...

area/sdk/php

This should solve the problem faced during [this revert](https://github.com/dagger/dagger/pull/9692) I have tested this locally via the following command: ``` dagger call test specific --race --pkg="./core/integration" --run="TestPHP" ``` The tests passed.

## Problem > Is there a flag to disable line numbers in the generated docs? Doesn't feel very useful to me, vs. the insane amount of churn it introduces _Originally...

## Problem Currently the PHP SDK is synchronous only. ## Technical Details PHP (as of 8.4) has no _standard way_ to perform asynchronous calls. PHP has [Fibers](https://www.php.net/manual/en/language.fibers.php) which get you...