Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge release 2.31.0 into 3.0.x #222

Merged
merged 35 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
fdc1706
Deprecations and type inference improvements for template resolvers
gsteel Jul 20, 2023
ef07f1d
Collect V2 Docs into a sub-folder
gsteel Aug 17, 2023
2e0453f
Minor linting fixes
gsteel Aug 17, 2023
67dbd66
Insert a level 2 heading to avoid suppressing header-increment lintin…
gsteel Aug 17, 2023
d987dc9
Merge pull request #215 from gsteel/v2-docs-dir
gsteel Aug 17, 2023
b4bc929
Document template resolver deprecations
gsteel Aug 17, 2023
62223de
Document future removal of short open tag stream wrapper
gsteel Aug 17, 2023
3eede36
Lock file maintenance
renovate[bot] Aug 18, 2023
7feb3f5
Lock file maintenance
renovate[bot] Aug 22, 2023
c9cf1ab
qa: CS and static analysis improvements to the template map generator…
gsteel Aug 22, 2023
a736297
qa: Add rudimentary test for the template map generator script
gsteel Aug 22, 2023
62de65d
qa: bump dev dependencies, refresh lock
gsteel Aug 22, 2023
36f71db
Merge pull request #217 from laminas/renovate/lock-file-maintenance
gsteel Aug 22, 2023
600181b
Lock file maintenance
renovate[bot] Aug 27, 2023
6aa8db7
Lock file maintenance
renovate[bot] Aug 29, 2023
d3ecee7
Lock file maintenance
renovate[bot] Sep 1, 2023
e73a844
Lock file maintenance
renovate[bot] Sep 2, 2023
ac30feb
Lock file maintenance
renovate[bot] Sep 6, 2023
bfbf70b
Lock file maintenance
renovate[bot] Sep 7, 2023
a9773b4
Lock file maintenance
renovate[bot] Sep 9, 2023
cceb39b
Lock file maintenance
renovate[bot] Sep 18, 2023
83a29ac
Lock file maintenance
renovate[bot] Sep 25, 2023
99f6d39
Lock file maintenance
renovate[bot] Oct 2, 2023
d2f8120
Lock file maintenance
renovate[bot] Oct 9, 2023
36a0e8d
Lock file maintenance
renovate[bot] Oct 16, 2023
b3bbe36
Improve code blocks describing proposed API changes to template resol…
gsteel Oct 17, 2023
fd02d9b
docs: Improve document outline and structure
gsteel Oct 17, 2023
26a9211
Merge pull request #216 from gsteel/v2-migration-prep
gsteel Oct 17, 2023
5164752
Merge pull request #212 from gsteel/template-resolver-cleanup
gsteel Oct 17, 2023
46c379a
Add return type hint to ViewModel::getIterator()
func0der Oct 17, 2023
6188b66
Merge pull request #220 from func0der/viewmodel-getiterator-typehint
gsteel Oct 17, 2023
b9bbb7f
qa: Minor type inference improvements to ViewModel and ModelInterface
gsteel Oct 17, 2023
f543917
Merge pull request #221 from gsteel/view-model-type-inference-improve…
Ocramius Oct 17, 2023
df7ec4e
Merge remote-tracking branch 'upstream/3.0.x' into 2.31.x-merge-up-in…
gsteel Oct 18, 2023
f54c7e7
Refresh lock and reset baseline post merge-up
gsteel Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions bin/templatemap_generator.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

$help = <<< EOH
$help = <<<'EOH'
Generate template maps.

Usage:
Expand Down Expand Up @@ -86,7 +86,7 @@
}

$basePath = $argv[1];
$files = ($argc < 3)
$files = $argc < 3
? findTemplateFilesInTemplatePath($basePath)
: array_slice($argv, 2);

Expand All @@ -99,14 +99,14 @@

$realPath = realpath($basePath);

$entries = array_map(function ($file) use ($basePath, $realPath) {
$entries = array_map(function (string $file) use ($basePath, $realPath) {
$file = str_replace('\\', '/', $file);

$template = (0 === strpos($file, $realPath))
$template = 0 === strpos($file, $realPath)
? substr($file, strlen($realPath))
: $file;

$template = (0 === strpos($template, $basePath))
$template = 0 === strpos($template, $basePath)
? substr($template, strlen($basePath))
: $template;

Expand All @@ -126,7 +126,8 @@
exit(0);

/**
* @psalm-return list<mixed>
* @param string $templatePath
* @return list<string>
*/
function findTemplateFilesInTemplatePath($templatePath): array
{
Expand All @@ -138,7 +139,8 @@ function findTemplateFilesInTemplatePath($templatePath): array

$files = [];
foreach ($rii as $file) {
if (strtolower($file->getExtension()) != 'phtml') {
assert($file instanceof SplFileInfo);
if (strtolower($file->getExtension()) !== 'phtml') {
continue;
}

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"psr/container": "^1 || ^2"
},
"require-dev": {
"laminas/laminas-authentication": "^2.13",
"laminas/laminas-authentication": "^2.15",
"laminas/laminas-coding-standard": "~2.5.0",
"laminas/laminas-feed": "^2.20",
"laminas/laminas-feed": "^2.21",
"laminas/laminas-filter": "^2.32",
"laminas/laminas-http": "^2.18",
"laminas/laminas-i18n": "^2.23",
Expand All @@ -52,9 +52,9 @@
"laminas/laminas-permissions-acl": "^2.15",
"laminas/laminas-router": "^3.11.1",
"laminas/laminas-uri": "^2.10",
"phpunit/phpunit": "^10.1.3",
"phpunit/phpunit": "^10.3.2",
"psalm/plugin-phpunit": "^0.18.4",
"vimeo/psalm": "^5.12"
"vimeo/psalm": "^5.15"
},
"conflict": {
"container-interop/container-interop": "<1.2",
Expand Down
Loading