Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Commit

Permalink
Reproduce composer unused with icanhazstring/composer-unused
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Jul 3, 2020
1 parent a33a0d7 commit d8c3b26
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "simpod/bugs",
"type": "project",
"require": {
"php-64bit": "^7.2"
"php-64bit": "^7.2",
"bentools/iterable-functions": "^1.4"
},
"authors": [
{
Expand All @@ -14,5 +15,8 @@
"psr-4": {
"SimPod\\Bugs\\": [ "src/" ]
}
},
"require-dev": {
"icanhazstring/composer-unused": "^0.7.3"
}
}
15 changes: 15 additions & 0 deletions src/Example.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace SimPod\Bugs;

use function iterable_to_array;

class Example
{
public function get() : array
{
return iterable_to_array([]);
}
}

0 comments on commit d8c3b26

Please sign in to comment.