<?php namespace Stolz\HtmlTidy;

class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
	/**
	 * Indicates if loading of the provider is deferred.
	 *
	 * @var bool
	 */
	protected $defer = true;

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
	{
		return ['stolz.tidy'];
	}

	/**
	 * Register bindings in the container.
	 *
	 * @return void
	 */
	public function register()
	{
		// Merge user's configuration
		$this->mergeConfigFrom(__DIR__ . '/config.php', 'tidy');

		// Bind 'stolz.tidy' shared component to the IoC container
		$this->app->singleton('stolz.tidy', function ($app) {
			return new Tidy($app['config']['tidy']);
		});
	}

	/**
	 * Perform post-registration booting of services.
	 *
	 * @return void
	 */
	public function boot()
	{
		// Register paths to be published by 'vendor:publish' artisan command
		$this->publishes([
			__DIR__ . '/config.php' => config_path('tidy.php'),
		]);
	}
}

<?php namespace Stolz\HtmlTidy;

class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
	/**
	 * Indicates if loading of the provider is deferred.
	 *
	 * @var bool
	 */
	protected $defer = true;

	/**
	 * Path to the default config file.
	 *
	 * @var string
	 */
	protected $configFile = __DIR__ . '/config.php';

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
	{
		return ['stolz.tidy'];
	}

	/**
	 * Register bindings in the container.
	 *
	 * @return void
	 */
	public function register()
	{
		// Merge user's configuration
		$this->mergeConfigFrom($this->configFile, 'tidy');

		// Bind 'stolz.tidy' shared component to the IoC container
		$this->app->singleton('stolz.tidy', function ($app) {
			return new Tidy($app['config']['tidy']);
		});
	}

	/**
	 * Perform post-registration booting of services.
	 *
	 * @return void
	 */
	public function boot()
	{
		// Register paths to be published by 'vendor:publish' artisan command
		$this->publishes([
			$this->configFile => config_path('tidy.php'),
		]);
	}
}

--- 
+++ 
@@ -8,13 +8,6 @@
 	 * @var bool
 	 */
 	protected $defer = true;
-
-	/**
-	 * Path to the default config file.
-	 *
-	 * @var string
-	 */
-	protected $configFile = __DIR__ . '/config.php';
 
 	/**
 	 * Get the services provided by the provider.
@@ -34,7 +27,7 @@
 	public function register()
 	{
 		// Merge user's configuration
-		$this->mergeConfigFrom($this->configFile, 'tidy');
+		$this->mergeConfigFrom(__DIR__ . '/config.php', 'tidy');
 
 		// Bind 'stolz.tidy' shared component to the IoC container
 		$this->app->singleton('stolz.tidy', function ($app) {
@@ -51,7 +44,7 @@
 	{
 		// Register paths to be published by 'vendor:publish' artisan command
 		$this->publishes([
-			$this->configFile => config_path('tidy.php'),
+			__DIR__ . '/config.php' => config_path('tidy.php'),
 		]);
 	}
 }
Fix for PHP < 5.6
