mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
Some type check fixes
This commit is contained in:
parent
a46ff8e137
commit
7a6a743295
4 changed files with 3 additions and 4 deletions
|
@ -47,7 +47,7 @@ use function Safe\shell_exec;
|
|||
* @property array<Project> $Projects
|
||||
* @property ?Project $ProjectInProgress
|
||||
*/
|
||||
class Ebook{
|
||||
final class Ebook{
|
||||
use Traits\Accessor;
|
||||
use Traits\FromRow;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ use Safe\DateTimeImmutable;
|
|||
* @property ?string $VcsUrlDomain
|
||||
* @property ?string $DiscussionUrlDomain
|
||||
*/
|
||||
class Project{
|
||||
final class Project{
|
||||
use Traits\Accessor;
|
||||
use Traits\FromRow;
|
||||
use Traits\PropertyFromHttp;
|
||||
|
|
|
@ -41,4 +41,3 @@ $showPlaceholderMetadata = $showPlaceholderMetadata ?? false;
|
|||
</table>
|
||||
</section>
|
||||
<? } ?>
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ catch(Exceptions\EbookNotFoundException){
|
|||
</section>
|
||||
|
||||
<? if(Session::$User?->Benefits->CanEditEbooks || Session::$User?->Benefits->CanEditEbookPlaceholders){ ?>
|
||||
<?= Template::EbookMetadata(['ebook' => $ebook, 'showPlaceholderMetadata' => Session::$User?->Benefits->CanEditEbookPlaceholders]) ?>
|
||||
<?= Template::EbookMetadata(['ebook' => $ebook, 'showPlaceholderMetadata' => Session::$User->Benefits->CanEditEbookPlaceholders]) ?>
|
||||
<? } ?>
|
||||
|
||||
<? if(Session::$User?->Benefits->CanEditProjects || Session::$User?->Benefits->CanManageProjects || Session::$User?->Benefits->CanReviewProjects){ ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue