Skip to content

Conversation

@judus
Copy link
Owner

@judus judus commented Oct 6, 2025

No description provided.

@codecov
Copy link

codecov bot commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 87.17949% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.71%. Comparing base (6b2b110) to head (dcb1b8f).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/Container/ArgonContainer.php 75.00% 2 Missing ⚠️
src/Container/ServiceResolver.php 33.33% 2 Missing ⚠️
src/Container/Compiler/ContainerCompiler.php 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #32      +/-   ##
============================================
- Coverage     99.12%   98.71%   -0.41%     
- Complexity      403      415      +12     
============================================
  Files            34       34              
  Lines          1145     1170      +25     
============================================
+ Hits           1135     1155      +20     
- Misses           10       15       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@judus judus merged commit 7457f02 into master Oct 6, 2025
1 of 3 checks passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines 113 to +130
private function generateGetMethod(ClassType $class): void
{
$method = $class->addMethod('get')
->setReturnType('object')
->setBody(<<<'PHP'
->setReturnType('object');

$strictBody = <<<'PHP'
$instance = $this->applyPreInterceptors($id, $args);
if ($instance !== null) {
return $instance;
}
if (!isset($this->serviceMap[$id])) {
throw new NotFoundException($id, 'compiled');
}
$instance = $this->{$this->serviceMap[$id]}($args);
return $this->applyPostInterceptors($instance);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve parent fallback when strict compiled container resolves services

The strict get() body now throws NotFoundException whenever $id is not in $this->serviceMap, instead of delegating to parent::get(). This means any service bound after compilation (via set() or a provider at runtime) can never be resolved in a strict compiled container even though the base container still allows explicit bindings while merely disallowing unregistered autowiring. As a result a strict compiled container becomes unusable for dynamic registrations, which is not necessary for enforcing strictness because ArgonContainer’s resolver already respects the mode. Consider retaining the parent fallback so registered-but-uncompiled services continue to work while strict mode still prevents autowiring.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants