Skip to content

Commit

Permalink
Use PHP syntax highlighting on the README (composer#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored Jun 19, 2022
1 parent 1e1cb2b commit 6b90e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ If all you want is to scan a directory and extract a classmap with all
classes/interfaces/traits/enums mapped to their paths, you can simply use:


```
```php
use Composer\ClassMapGenerator\ClassMapGenerator;

$map = ClassMapGenerator::createMap('path/to/scan');
Expand All @@ -41,7 +41,7 @@ foreach ($map as $symbol => $path) {
For more advanced usage, you can instantiate a generator object and call scanPaths one or more time
then call getClassMap to get a ClassMap object containing the resulting map + eventual warnings.

```
```php
use Composer\ClassMapGenerator\ClassMapGenerator;

$generator = new ClassMapGenerator;
Expand Down

0 comments on commit 6b90e55

Please sign in to comment.