8000 Add support to custom type hint by IndraGunawan · Pull Request #1021 · symfony/maker-bundle · GitHub
[go: up one dir, main page]

Skip to content

Add support to custom type hint #1021

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

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
fix cs
  • Loading branch information
IndraGunawan committed Nov 30, 2021
commit 0f6186538cb1e88e0be14a6545a00d4b684b243b
4 changes: 2 additions & 2 deletions src/Util/ClassSourceManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1162,9 +1162,9 @@ private function getEntityTypeHint($doctrineType): ?string
case 'blob':
default:
if (isset($this->customTypeHints[$doctrineType])) {
$type = $this->customTypeHints[$doctrineType];
$type = $this->customTypeHints[$doctrineType];

return '\\'.\ltrim($type, '\\');
return '\\'.ltrim($type, '\\');
}

return null;
Expand Down
9 changes: 9 additions & 0 deletions tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the Symfony MakerBundle package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Indragunawan\ApiRateLimitBundle\Tests\DependencyInjection;

use DateTimeImmutable;
Expand Down
0