Skip to content

Commit

Permalink
Merge #28 - Fix composer warnings about PSR-4
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Apr 21, 2021
2 parents f1db434 + 2f1d87c commit 0ea7e6b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
9 changes: 8 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
.gitignore export-ignore
.github export-ignore
phpcs.xml.dist export-ignore
phpunit.xml.dist export-ignore
phpstan.neon.dist export-ignore
phpstan-baseline.neon export-ignore
scripts export-ignore
makefile export-ignore
Makefile export-ignore
src/Resources/themes/default/data export-ignore
.editorconfig export-ignore
/examples export-ignore
/locale/Doctum.pot export-ignore
/locale/*.po export-ignore
/tests export-ignore
CHANGELOG.md export-ignore
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@
},
"autoload": {
"psr-4": {
"Doctum\\": "src/",
"Doctum\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Doctum\\Tests\\": "tests/"
}
},
Expand Down
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,7 @@ parameters:
path: tests/Parser/NodeVisitorTest.php

-
message: "#^Call to an undefined method Doctum\\\\Tests\\\\Renderer\\\\RendererTest\\:\\:assertFileDoesNotExist\\(\\)\\.$#"
message: "#^Call to an undefined method Doctum\\\\Tests\\\\Renderer\\\\DiffTest\\:\\:assertFileDoesNotExist\\(\\)\\.$#"
count: 1
path: tests/Renderer/DiffTest.php

2 changes: 1 addition & 1 deletion tests/Console/CommandHelpTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Doctum\Tests\Command;
namespace Doctum\Tests\Console;

use Doctum\Console\Command\ParseCommand;
use Doctum\Console\Command\RenderCommand;
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types = 1);

namespace Doctum\Tests\Command;
namespace Doctum\Tests\Console;

use Doctum\Console\Command\ParseCommand;
use Doctum\Console\Command\RenderCommand;
Expand Down
2 changes: 1 addition & 1 deletion tests/Renderer/DiffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Doctum\Renderer\Diff;
use Doctum\Tests\AbstractTestCase;

class RendererTest extends AbstractTestCase
class DiffTest extends AbstractTestCase
{

public function testIsPhpClass(): void
Expand Down

0 comments on commit 0ea7e6b

Please sign in to comment.