Merge branch 'develop' of github.com:getgrav/grav into develop

This commit is contained in:
Andy Miller 2021-12-18 17:46:59 -07:00
commit d939b1e563
No known key found for this signature in database
GPG Key ID: 9F2CF38AEBDB0AE0
2 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@
* Upgraded to **composer v2.1.14** for PHP 8.1 compatibility
* Added third `$name` parameter to `Blueprint::flattenData()` method, useful for flattening repeating data
* `ControllerResponseTrait`: Redirect response should be json if the extension is .json
* When symlinking Grav install, include also tests
3. [](#bugfix)
* Fixed bad key lookup in `FlexRelatedDirectoryTrait::getCollectionByProperty()`
* Fixed RequestHandlers `NotFoundException` having empty request

View File

@ -200,6 +200,10 @@ class SandboxCommand extends GravCommand
$io->newLine();
$io->writeln('<comment>Resetting Symbolic Links</comment>');
// Symlink also tests if using git.
if (is_dir($this->source . '/tests')) {
$this->mappings['/tests'] = '/tests';
}
foreach ($this->mappings as $source => $target) {
if ((string)(int)$source === (string)$source) {