Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* ArrayDumper doesn't extend BaseDumper anymore (hence no conflict o…

…n the interface)

 * move keys from BaseDumper back to ArrayDumper
 * interface now declares dump() to always return void
  • Loading branch information...
commit a1d287cba96aabe3be5b4e57f149930d50d4015c 1 parent d244f87
@till authored
View
27 src/Composer/Package/Dumper/ArrayDumper.php
@@ -12,8 +12,6 @@
namespace Composer\Package\Dumper;
-use Composer\Package\Dumper\BaseDumper;
-use Composer\Package\Dumper\DumperInterface;
use Composer\Package\BasePackage;
use Composer\Package\PackageInterface;
@@ -21,8 +19,31 @@
* @author Konstantin Kudryashiv <ever.zet@gmail.com>
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
-class ArrayDumper extends BaseDumper
+class ArrayDumper
{
+ /**
+ * @var array
+ */
+ protected static $keys = array(
+ 'binaries' => 'bin',
+ 'scripts',
+ 'type',
+ 'extra',
+ 'installationSource' => 'installation-source',
+ 'license',
+ 'authors',
+ 'description',
+ 'homepage',
+ 'keywords',
+ 'autoload',
+ 'repositories',
+ 'includePaths' => 'include-path',
+ 'support',
+ );
+
+ /**
+ * @return array
+ */
public function dump(PackageInterface $package)
{
$data = array();
View
20 src/Composer/Package/Dumper/BaseDumper.php
@@ -31,26 +31,6 @@
protected $format = '';
/**
- * @var array
- */
- protected static $keys = array(
- 'binaries' => 'bin',
- 'scripts',
- 'type',
- 'extra',
- 'installationSource' => 'installation-source',
- 'license',
- 'authors',
- 'description',
- 'homepage',
- 'keywords',
- 'autoload',
- 'repositories',
- 'includePaths' => 'include-path',
- 'support',
- );
-
- /**
* Path to where to dump the export to.
* @var mixed|null
*/
View
2  src/Composer/Package/Dumper/DumperInterface.php
@@ -23,7 +23,7 @@
*
* @param PackageInterface $package
*
- * @return mixed
+ * @return void
*/
public function dump(PackageInterface $package);
}
Please sign in to comment.
Something went wrong with that request. Please try again.