diff --git a/.gitattributes b/.gitattributes
index df67963ab..700a7ff8f 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,4 +1,5 @@
tests/ export-ignore
+tools/ export-ignore
extracted.json export-ignore
README.md export-ignore
CHANGELOG.md export-ignore
diff --git a/composer.json b/composer.json
index cf2966ad2..7d3b44d8f 100644
--- a/composer.json
+++ b/composer.json
@@ -99,7 +99,8 @@
},
"autoload-dev": {
"psr-4": {
- "danog\\MadelineProto\\Test\\": "tests/danog/MadelineProto"
+ "danog\\MadelineProto\\Test\\": "tests/danog/MadelineProto",
+ "danog\\MadelineProto\\": "tools/"
},
"files": [
"tools/build_docs/schemas.php",
diff --git a/psalm.xml b/psalm.xml
index f23ff629e..ee9a55fd8 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -15,9 +15,6 @@
-
-
-
diff --git a/schemas b/schemas
index 5bf936239..c23c18b72 160000
--- a/schemas
+++ b/schemas
@@ -1 +1 @@
-Subproject commit 5bf936239e21cb2e2c028a828bff7c3b75be9995
+Subproject commit c23c18b720a3b705069bb0ce947d65898bd9f397
diff --git a/src/AnnotationsBuilder.php b/tools/AnnotationsBuilder.php
similarity index 99%
rename from src/AnnotationsBuilder.php
rename to tools/AnnotationsBuilder.php
index b674a9bf4..9368d18a6 100644
--- a/src/AnnotationsBuilder.php
+++ b/tools/AnnotationsBuilder.php
@@ -63,7 +63,7 @@ final class AnnotationsBuilder
$this->blacklistHard = $this->blacklist;
unset($this->blacklistHard['messages.getHistory'], $this->blacklistHard['channels.getMessages'], $this->blacklistHard['messages.getMessages'], $this->blacklistHard['updates.getDifference'], $this->blacklistHard['updates.getChannelDifference'], $this->blacklistHard['updates.getState']);
- file_put_contents(__DIR__.'/Namespace/Blacklist.php', ' $methods) {
if ($namespace === 'InternalDoc') {
- $handle = fopen(__DIR__.'/InternalDoc.php', 'w');
+ $handle = fopen(__DIR__.'/../src/InternalDoc.php', 'w');
fwrite($handle, "