Skip to content

Commit 5c80c1e

Browse files
committed
merged branch thunderer/autoload-class-typehint (PR #519)
This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #519). Discussion ---------- Added $loader variable typehint for easier manipulation in IDEs. Not all project dependencies are managed by Composer. Common solutions for (company / private) libraries and bundles are git submodules or even symlinked directories. This PR adds typehint for `$loader` variable inside `app/autoload.php` so people won't need to search for information on what class it is and what interface it exposes when trying to add their code to autoloader. Commits ------- 67e9d69 added loader variable typehint for easier manipulation in IDEs
2 parents 77f1ae2 + c860379 commit 5c80c1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/autoload.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<?php
22

33
use Doctrine\Common\Annotations\AnnotationRegistry;
4+
use Composer\Autoload\ClassLoader;
45

6+
/**
7+
* @var $loader ClassLoader
8+
*/
59
$loader = require __DIR__.'/../vendor/autoload.php';
610

711
// intl

0 commit comments

Comments
 (0)