<?php

namespace Psy;

/**
 * Command to return the eval-able code to startup PsySH.
 *
 *     eval(\Psy\sh());
 *
 * @return string
 */
function sh()
{
    return "extract(\Psy\Shell::debug(get_defined_vars()));";
}

<?php

namespace Psy;

/**
 * Command to return the eval-able code to startup PsySH.
 *
 *     eval(\Psy\sh());
 *
 * @return string
 */
function sh()
{
    return 'extract(\Psy\Shell::debug(get_defined_vars(), $this ?: null));';
}

Add implicit `$this` binding to the debug shortcut
Add implicit `$this` binding to the debug shortcut