Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed namespace handling from removing more than the tail. #797

Merged
merged 1 commit into from
Aug 19, 2020
Merged

fixed namespace handling from removing more than the tail. #797

merged 1 commit into from
Aug 19, 2020

Conversation

MeRoBo
Copy link

@MeRoBo MeRoBo commented Aug 19, 2020

namespace handling is stripping more than the tail, causing

unserialize(): Error at offset 209854 of 284023 bytes

[
"name" => "Daemon",
"namespacedName" => "Foo\Infrastructure\Daemon\Watchdog\Daemon",
"namespace" => "Foo\Infrastructure\Watchdog";
...]

@codecov
Copy link

codecov bot commented Aug 19, 2020

Codecov Report

Merging #797 into master will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #797      +/-   ##
============================================
- Coverage     83.03%   83.00%   -0.03%     
  Complexity     1114     1114              
============================================
  Files            60       60              
  Lines          3418     3413       -5     
============================================
- Hits           2838     2833       -5     
  Misses          580      580              
Impacted Files Coverage Δ Complexity Δ
src/StaticAnalysis/CodeUnitFindingVisitor.php 78.07% <100.00%> (-0.93%) 40.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1894b1a...68e82f5. Read the comment docs.

@@ -1,5 +1,5 @@
<?php declare(strict_types=1);
namespace SebastianBergmann\CodeCoverage\TestFixture;
namespace SebastianBergmann\CodeCoverage\ClassThatUsesAnonymousClass\TestFixture;

Choose a reason for hiding this comment

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

Please avoid changing existing test fixture.

@sebastianbergmann
Copy link
Owner

namespace handling is stripping more than the tail

To make this explicit: when the name of the class is part of the namespace name then it is wrongly removed from the namespace name. Good catch! This is a bug that should be fixed.

unserialize(): Error at offset 209854 of 284023 bytes

However, I do not understand how a wrong namespace name results in an unserialize() error.

@sebastianbergmann sebastianbergmann merged commit 0b4059c into sebastianbergmann:master Aug 19, 2020
sebastianbergmann added a commit that referenced this pull request Aug 19, 2020
@MeRoBo
Copy link
Author

MeRoBo commented Aug 19, 2020 via email

@MeRoBo MeRoBo deleted the namespace-stipping-issue branch August 19, 2020 22:55
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